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

Fix re-focusing element after close #1186

Merged
merged 2 commits into from
Mar 2, 2022
Merged

Fix re-focusing element after close #1186

merged 2 commits into from
Mar 2, 2022

Conversation

RobinMalfait
Copy link
Collaborator

The code for React already worked, let's update the Vue code to make it similar which properly restores focus. The bad sign is that we already had tests for this that passed... Let's investigate in setting up tests in a more real environment like Puppeteer or Playwright soon...

Fixes: #844

The code for React already worked, let's update the Vue code to make it
similar which properly restores focus.
@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-vue – ./packages/playground-vue

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-vue/AHiD2zoi8VPqDutSH6fZLcPVrmVf
✅ Preview: https://headlessui-vue-git-fix-restore-element-tailwindlabs.vercel.app

headlessui-react – ./packages/playground-react

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-react/DrJnosAgfreKqrEaRK6eyBaiiEbS
✅ Preview: https://headlessui-react-git-fix-restore-element-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.

[Bug]: Vue components doesn't focus back to button
1 participant