Merge pull request #9675 from tchak/fix-multiple-dropdown-options

fix(dropdown_multiple): options -> enabled_non_empty_options
This commit is contained in:
Paul Chavard 2023-11-07 14:33:19 +00:00 committed by GitHub
commit a65aba521e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)