-target="menu">
<% if @selections.any? %>
<% @selections.each do |selection| %>
-target="option">
<%= render component('ui/forms/checkbox').new(
id: selection.id,
name: selection.option.name,
value: selection.option.value,
checked: selection.checked,
size: :s,
form: @form,
"data-action": "#{stimulus_id}#search #{stimulus_id}#sortCheckboxes #{stimulus_id}#updateHiddenInputs",
"data-#{stimulus_id}-target": "checkbox"
) %>
<%= label_tag selection.id, selection.presentation, class: "ml-2 text-sm text-gray-700" %>
<% end %>
<% else %>
<%= t('.no_filter_options') %>
<% end %>