feat(Champ.annuaire_education): add missing fr-input
class name
This commit is contained in:
parent
4d90b1f662
commit
c22438fb75
2 changed files with 8 additions and 3 deletions
|
@ -2,4 +2,11 @@ class EditableChamp::AnnuaireEducationComponent < EditableChamp::ComboSearchComp
|
|||
def dsfr_input_classname
|
||||
'fr-input'
|
||||
end
|
||||
|
||||
def react_input_opts
|
||||
opts = input_opts(id: @champ.input_id, required: @champ.required?, aria: { describedby: @champ.describedby_id })
|
||||
opts[:className] = "#{opts.delete(:class)} fr-mt-1w"
|
||||
|
||||
opts
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,7 +3,5 @@
|
|||
= @form.hidden_field :value
|
||||
= @form.hidden_field :external_id
|
||||
= react_component("ComboAnnuaireEducationSearch",
|
||||
required: @champ.required?,
|
||||
id: @champ.input_id,
|
||||
describedby: @champ.describedby_id,
|
||||
**react_input_opts,
|
||||
**react_combo_props)
|
||||
|
|
Loading…
Add table
Reference in a new issue