Open silviuaavram opened 3 months ago
@curtbellew will test - to check how Chrome, Firefox, and Safari behave with a native HTML select- and report back to the group.
The ARIA Authoring Practices (APG) Task Force just discussed Mouse behavior differences between Select-only and editable combobox
.
I did some quick tests in both Windows and Macos using a standard HTML Select. In each case I used the keyboard to bring focus to the select, opened the options, used up and down arrow keys to change the highlighted value, then clicked outside the select with my mouse. On Macos I was able to open the options by hitting the down arrow whereas on Windows I held down the Alt key and used the down arrow to open the options.
Macos - Chrome - returns to the initial value Safari - returns to the initial value Edge - returns to the initial value Firefox - returns to the initial value
Windows - Chrome - selects whatever was highlighted Edge - selects whatever was highlighted Firefox - selects whatever was highlighted
`
`The ARIA Authoring Practices (APG) Task Force just discussed Mouse behavior differences between Select-only and editable combobox
.
Hi! I am opening this issue to ask about a different behaviour between the select-only and editable combobox elements.
The behaviour in question: highlight an item with keyboard, so it stays highlighted, then mouse click outside the list (basically do a blur by mouse).
select-only combobox selects the highlighted item. autocomplete combobox does not select the highlighted item.
Is there a specific reason to have a different behaviour between them? I would expect that the behaviour is the same, and the behaviour should be not to select the highlighted item on mouse blur. I would, however, expect the highlighted item to be selected when blurring by Tab, but this works correctly, so no further action here.
Autocomplete: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-list/ Select Only: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
What do you think? As always, I'm happy to help with a PR to fix if we agree on the correct behaviour. Thank you!