Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure that the input syncs when the combobox closes #1137

Merged
merged 2 commits into from
Feb 23, 2022

Conversation

RobinMalfait
Copy link
Collaborator

This PR will make sure that in Vue the input also syncs correctly when the combobox closes. Whether it be via Escape or outside click.
We also added a test for React just to verify the behaviour and to prevent future regressions.

Fixes: #1136

@vercel
Copy link

vercel bot commented Feb 23, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

headlessui-react – ./packages/playground-react

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-react/8YphqKkD1JkpFDZSSm7GapCqioCE
✅ Preview: https://headlessui-react-git-ensure-input-syncs-on-close-tailwindlabs.vercel.app

headlessui-vue – ./packages/playground-vue

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-vue/7wvjoMg2MWrdxy2sTdZrzLsT8Wj9
✅ Preview: https://headlessui-vue-git-ensure-input-syncs-on-close-tailwindlabs.vercel.app

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.

Combobox: Tabbing out reverts to the last selected item - clicking outside does not
1 participant