You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is only 1 option available in the Combobox, and user clicks outside of the combobox, I would expect that option to be selected, but it's not. It is only selected if the user hits tab key, which is an inconsistent behavior, as in both cases the focus is moved outside of the Combobox.
Specifically, this behavior can be frustrating when the user clicks on the combobox, pastes some text that leads to the combobox showing only 1 option (to make it worse, the option may be highlighted which indicates that it is automatically selected), and then clicks outside of the combobox.
The text was updated successfully, but these errors were encountered:
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
2.1.6
What browser are you using?
Chrome (MAC)
Reproduction URL
Can be reproduced on the documentation page: https://headlessui.com/react/combobox
Describe your issue
If there is only 1 option available in the Combobox, and user clicks outside of the combobox, I would expect that option to be selected, but it's not. It is only selected if the user hits tab key, which is an inconsistent behavior, as in both cases the focus is moved outside of the Combobox.
Specifically, this behavior can be frustrating when the user clicks on the combobox, pastes some text that leads to the combobox showing only 1 option (to make it worse, the option may be highlighted which indicates that it is automatically selected), and then clicks outside of the combobox.
The text was updated successfully, but these errors were encountered: