528b7ec3f8
used for the `required` html attribute. It check visibility to avoid hidden required input which prevent the form from being sent.
5 lines
160 B
Text
5 lines
160 B
Text
= @form.number_field :value,
|
|
id: @champ.input_id,
|
|
aria: { describedby: @champ.describedby_id },
|
|
placeholder: @champ.libelle,
|
|
required: @champ.required?
|