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

Second modal freezes on mobile and becomes unresponsive after opening #2431

Closed
carlosvaldesweb opened this issue Oct 21, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@carlosvaldesweb
Copy link

Environment

Version

v2.18.7

Reproduction

https://stackblitz.com/edit/nuxt-ui-owswvw?file=app.vue

Description

When opening a second modal from within the first modal on a mobile device, the UI freezes, and the second modal becomes unresponsive. This issue only happens on mobile devices, where the user cannot close the modal, even manually. On desktop, if a close button is added, the user can close it, but on mobile, it remains stuck and doesn't respond to any touch events.

Steps to reproduce:

Open the first modal.
Click the "Open Second" button to open the second modal.
Try to close the second modal on a mobile device.
Expected behavior: The second modal should open and close without freezing the UI, and it should be fully functional on both desktop and mobile devices.

Actual behavior: The second modal freezes the UI on mobile devices, preventing any interaction, and the user cannot close it.

Additional context

No response

Logs

No response

Copy link
Member

benjamincanac commented Nov 16, 2024

This is a limitation of Headless UI, you have to wrap the second modal in the first one for this to work.

@damisparks
Copy link

@benjamincanac I had the same issue. Wrapping the second modal in the first one solves the problem. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants