From 3dc0ed769584baa0f0e7d7fcbd0c5838e52c817a Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 5 Oct 2022 14:37:30 +0200 Subject: [PATCH] fix: label in multiple_drop_down_list --- .../multiple_drop_down_list_component.html.haml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/components/editable_champ/multiple_drop_down_list_component/multiple_drop_down_list_component.html.haml b/app/components/editable_champ/multiple_drop_down_list_component/multiple_drop_down_list_component.html.haml index 593cb8fa8..d088fb045 100644 --- a/app/components/editable_champ/multiple_drop_down_list_component/multiple_drop_down_list_component.html.haml +++ b/app/components/editable_champ/multiple_drop_down_list_component/multiple_drop_down_list_component.html.haml @@ -1,11 +1,9 @@ - if @champ.options? - if @champ.render_as_checkboxes? = @form.collection_check_boxes(:value, @champ.enabled_non_empty_options, :to_s, :to_s) do |b| - .editable-champ.editable-champ-checkbox - = b.label do - = b.check_box({ multiple: true, checked: @champ&.selected_options&.include?(b.value), aria: { describedby: @champ.describedby_id } }) - = b.text - + - tag.div(class: 'editable-champ editable-champ-checkbox') do + - b.label do + - b.check_box({ multiple: true, checked: @champ&.selected_options&.include?(b.value), aria: { describedby: @champ.describedby_id } }) + b.text - else = @form.hidden_field :value = react_component("ComboMultipleDropdownList",