Add close event to listbox #2593
Replies: 2 comments
-
Also really need this functionality! The contents of our |
Beta Was this translation helpful? Give feedback.
-
In case anyone finds this thread and still hopes to accomplish this outside of HeadlessUI, here's our solution. We use the Floating-UI library to help manage the position & existence of the floating (dropdown menu) element for the
Another possible solution would be to watch for the change of the |
Beta Was this translation helpful? Give feedback.
-
I've had the need for some way to tell when the listbox component closes, but there doesn't seem a way to tell as of now. Would it be possible to add a close event or something, that triggers whenever the listbox closes?
Example: I've got a listbox component with multiple set to
true
and I want to fetch some data from the selected options, but only the when the list is closed.Beta Was this translation helpful? Give feedback.
All reactions