refactor(champ): add required?
used for the `required` html attribute. It check visibility to avoid hidden required input which prevent the form from being sent.
This commit is contained in:
parent
c94b1ce3d9
commit
528b7ec3f8
26 changed files with 35 additions and 28 deletions
|
@ -3,7 +3,7 @@
|
|||
= @form.hidden_field :departement
|
||||
= @form.hidden_field :code_departement
|
||||
= react_component("ComboCommunesSearch",
|
||||
required: @champ.mandatory?,
|
||||
required: @champ.required?,
|
||||
id: @champ.input_id,
|
||||
classNameDepartement: "width-33-desktop width-100-mobile",
|
||||
className: "width-66-desktop width-100-mobile",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue