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

Reset Combobox Input when the value gets reset #1181

Merged
merged 2 commits into from
Mar 2, 2022

Conversation

RobinMalfait
Copy link
Collaborator

This PR will make sure that when you reset the value from the Combobox from the outside world (e.g.: state reset) that the input also correctly syncs.
Currently we only sync it if we have a string value or a displayValue but now we will also reset to nothing by default.

Fixes: #1177

@vercel
Copy link

vercel bot commented Mar 2, 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/6vGvus3VffZ9qZtMGU9hzxk9mpPo
✅ Preview: https://headlessui-react-git-clear-input-on-reset-tailwindlabs.vercel.app

headlessui-vue – ./packages/playground-vue

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-vue/AULgBomHwXCoHxo9V9BUMoowxWXU
✅ Preview: https://headlessui-vue-git-clear-input-on-reset-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.

[React] Combobox.Input does not clear after removing the current value from the combobox.
1 participant