[React][Combobox] Specify an Option as being active #1178
-
I'd like to have the Combobox behave such that whenever the list is open and there are options to display, the first option is automatically active. I don't see a current way of accomplishing this. One way would perhaps to pass in an |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
Me too, I watched https://www.youtube.com/watch?v=-jix4KyxLuQ and was working on my own command palette, then I noticed that feature was missing. |
Beta Was this translation helpful? Give feedback.
-
Indeed, this would make me move from downshift.js to the headles.ui I was playing around with the Command Pallet in Tailwind UI and the option that is highlighted as active is pretty random: |
Beta Was this translation helpful? Give feedback.
-
The only workaround I could find is to add a Would love to see this supported by this library! |
Beta Was this translation helpful? Give feedback.
-
Hey! Thank you for your suggestion! This pr should fix that: #1279 |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to make this behavior optional? Consider the examples here: https://www.w3.org/TR/wai-aria-practices-1.1/examples/combobox/aria1.1pattern/listbox-combo.html
|
Beta Was this translation helpful? Give feedback.
-
Bump... is there any way to make this become optional? Kinda like a |
Beta Was this translation helpful? Give feedback.
-
Bump. Really wish this were optional. Makes it a pretty strange UX for keyboard users where they Tab onto the input field, and if they tab again, it applies the first option in the list. I'd expect tabbing to move to the next tabbable DOM element |
Beta Was this translation helpful? Give feedback.
Hey! Thank you for your suggestion!
Much appreciated! 🙏
This pr should fix that: #1279