fix: label in multiple_drop_down_list

This commit is contained in:
simon lehericey 2022-10-05 14:37:30 +02:00 committed by LeSim
parent 87d0334c1c
commit 3dc0ed7695

View file

@ -1,11 +1,9 @@
- if @champ.options? - if @champ.options?
- if @champ.render_as_checkboxes? - if @champ.render_as_checkboxes?
= @form.collection_check_boxes(:value, @champ.enabled_non_empty_options, :to_s, :to_s) do |b| = @form.collection_check_boxes(:value, @champ.enabled_non_empty_options, :to_s, :to_s) do |b|
.editable-champ.editable-champ-checkbox - tag.div(class: 'editable-champ editable-champ-checkbox') do
= b.label do - b.label do
= b.check_box({ multiple: true, checked: @champ&.selected_options&.include?(b.value), aria: { describedby: @champ.describedby_id } }) - b.check_box({ multiple: true, checked: @champ&.selected_options&.include?(b.value), aria: { describedby: @champ.describedby_id } }) + b.text
= b.text
- else - else
= @form.hidden_field :value = @form.hidden_field :value
= react_component("ComboMultipleDropdownList", = react_component("ComboMultipleDropdownList",