[accessibility] Listbox: Navigate between options while typing, (like native <select>
does)
#1957
yaronuliel
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Headless does (at least some of) this when the select dropdown is open, but not when it is collapsed as the native select does. Out of curiosity I looked at React Aria's select, and it does do type-ahead when closed, but not when open, oddly. Material UI does it when open. Vuetify does it when open or closed. Personally I would expect it when open or closed. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In native
<select>
- when the user types on the keyboard while focused on the element, the component looks for the next relevant options by the keystrokes, and replaces the selected valueThis feature will help keyboard navigation, which is a huge deal in accessibility. It will also make the user experience better and more expected by resembling the way the browser works.
To resemble browser behavior, keystrokes should:
"a"
rather than searching for next option that starts with"aaa"
)change
event on each change, even during typing (betweenkeydown
andkeyup
events)disabled
optionsExample of what happens in a native select:
Screen.Recording.2022-10-26.at.20.49.09.mov
Beta Was this translation helpful? Give feedback.
All reactions