<%# Enter in the search field would otherwise submit the surrounding category/goal form. %> <%= render DS::SearchInput.new( variant: :standalone, placeholder: placeholder, data: { list_filter_target: "input", action: "input->list-filter#filter keydown.enter->list-filter#filter:prevent" } ) %>
<%# The `label > input + div > svg` nesting is load-bearing: `color-icon-picker` tints `input.nextElementSibling` and clones the svg out of the closest label. %> <% icons.each do |icon_name| %> <% end %>