Skip to content

Conversation

RobinMalfait
Copy link
Member

This PR fixes an issue where the data-open state on the ComboboxInput wasn't always up to date. You can see this behavior if you use the immediate prop, focus into the ComboboxInput, then press Escape to close the combobox. The data-open state would still be present.

This was just a silly internal bug where the useMemo dependencies were not correctly set up. Simplified the internal useMemo hook and made sure all the dependencies are available.

Fixes: #3718

Copy link

vercel bot commented Sep 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
headlessui-react Ready Ready Preview Comment Sep 12, 2025 1:21pm
headlessui-vue Ready Ready Preview Comment Sep 12, 2025 1:21pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When Combobox is used with immediate, data-open lingers after closing with Escape
1 participant