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
Right now... the first option is always active in the combobox... whenever you press "Enter"... since the first option is active... it will be selected... I would like a functionality similar to google search box...
No initial option selected
A functionality opposite to this #1279
I think there is already some interest for this feature. #1279 (comment)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Right now... the first option is always active in the combobox... whenever you press "Enter"... since the first option is active... it will be selected... I would like a functionality similar to google search box...
No initial option selected

A functionality opposite to this #1279
I think there is already some interest for this feature. #1279 (comment)
I've checked the codebase.. I think it is a pretty simple pr.
https://github.com/tailwindlabs/headlessui/blob/11157a80247af85a82ce076f61420b32666eb6d5/packages/%40headlessui-react/src/components/combobox/combobox.tsx#L559C3-L559C3
https://github.com/tailwindlabs/headlessui/blob/11157a80247af85a82ce076f61420b32666eb6d5/packages/%40headlessui-react/src/components/combobox/combobox.tsx#L590C9-L590C44
I would be willing to do this PR if approved.
I am requesting for something like a
noInitialOptionActive
propBeta Was this translation helpful? Give feedback.
All reactions