Closed RobinMalfait closed 6 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
headlessui-react | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 23, 2024 1:35pm |
headlessui-vue | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 23, 2024 1:35pm |
This PR adds a new optional
onClose
prop to theCombobox
component and it will be called when theCombobox
closes.Right now, we don't provide any information about why the
Combobox
closes, but that could be a future improvement.A good use case for this prop is if you want to reset some state that was used to filter the options, instead of resetting the state in multiple places such as an
onBlur
on theComboboxInput
or theonChange
of theCombobox
component itself.