fix(dropdown_multiple): options -> enabled_non_empty_options

This commit is contained in:
Paul Chavard 2023-11-07 12:05:33 +01:00
parent 234c6e6248
commit 198860d9f3

View file

@ -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)