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
I'm using Headless UI version 2.2.4 Combobox. When a user selects multiple options, they can click anywhere outside the dropdown to close it; however, I've been given the requirement to have a 'Done' button that will close the dropdown, and no matter what I try, nothing seems to work
What I tried:
Added a ref to the button that I click when the done button is clicked
Also tried adding ref to input that I blur on click in case the immediate prop interferes
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.
-
I'm using Headless UI version 2.2.4 Combobox. When a user selects multiple options, they can click anywhere outside the dropdown to close it; however, I've been given the requirement to have a 'Done' button that will close the dropdown, and no matter what I try, nothing seems to work
What I tried:
Here's my current implementation
Beta Was this translation helpful? Give feedback.
All reactions