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

[VueJS] FocusTrap issue causing modal to not open when routed back to the page #3306

Open
phatlast96 opened this issue Jun 20, 2024 · 2 comments

Comments

@phatlast96
Copy link

What package within Headless UI are you using?
@headlessui/vue

What version of that package are you using?
^1.7.13

What browser are you using?
Chrome

Describe your issue
I keep having focusTrap issue when I route back to a page.

There is a small bug that when I add a new project the "Upload Files" button doesn't work unless I refresh the screen.
https://www.loom.com/share/8bbfb5c89f2f402d8bba7668ab39ba19?sid=777a8e20-7ec4-41e2-825a-cec890fe06a7

@phatlast96
Copy link
Author

I hacky fix is to use v-if. I guess HEADLESS was unable to unmount the previous Modal.

@RobinMalfait
Copy link
Collaborator

Hey! Can you share a minimal reproduction repo that we can debug?

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

No branches or pull requests

2 participants