<%# locals: form:, method:, collection:, options: {} %>
form-dropdown" data-select-menu-placement-value="<%= menu_placement %>" data-action="dropdown:select->form-dropdown#onSelect">
<%= form.label method, options[:label], class: "form-field__label", id: "#{method}_label" if options[:label].present? %> <%= form.hidden_field method, value: @selected_value, data: { "form-dropdown-target": "input", "auto-submit-target": "auto", **(options.dig(:html_options, :data) || {}) } %> <%# `aria-expanded` reflects MENU open/closed state — managed by the select controller's openMenu/close. Init as "false"; previously this incorrectly mirrored whether a value was selected. `aria-labelledby` points at BOTH the visible label and the trigger button itself so AT users hear "