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

Menu (Dropdown) doesn't close when clicking an iframe element #2484

Closed
ukaj808 opened this issue May 8, 2023 Discussed in #2462 · 1 comment · Fixed by #2485
Closed

Menu (Dropdown) doesn't close when clicking an iframe element #2484

ukaj808 opened this issue May 8, 2023 Discussed in #2462 · 1 comment · Fixed by #2485
Assignees

Comments

@ukaj808
Copy link

ukaj808 commented May 8, 2023

Discussed in #2462

Originally posted by ukaj808 April 28, 2023
Hey!

I've got an iframe on my page and when I click it to interact with it, the menu dropdown doesnt close. If I click anywhere outside the iframe the dropdown closes as expected. Is this expected behavior?

I created a quick vue3 project to recreate the "issue": https://github.com/ukaj808/headlessui-iframe-issue

Thanks,
Fiz

@thecrypticace
Copy link
Contributor

Hey, thanks for reporting this one — it's definitely not the expected behavior. I've merged in #2485 that fixes this. The fix will be available in our next tagged release. You can test it via our insiders build which will be ready shortly (in a few minutes):

npm install @headlessui/vue@insiders

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 a pull request may close this issue.

2 participants