From 198860d9f3b7fdc72ec68703f162513334d27a4e Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 7 Nov 2023 12:05:33 +0100 Subject: [PATCH] fix(dropdown_multiple): options -> enabled_non_empty_options --- app/models/champs/multiple_drop_down_list_champ.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/champs/multiple_drop_down_list_champ.rb b/app/models/champs/multiple_drop_down_list_champ.rb index fb4f0e782..da8f65f4a 100644 --- a/app/models/champs/multiple_drop_down_list_champ.rb +++ b/app/models/champs/multiple_drop_down_list_champ.rb @@ -65,7 +65,7 @@ class Champs::MultipleDropDownListChamp < Champ end def focusable_input_id - render_as_checkboxes? ? checkbox_id(options.find(&:present?)) : input_id + render_as_checkboxes? ? checkbox_id(enabled_non_empty_options.first) : input_id end def checkbox_id(value)