You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without setting prevent close, if Modal Box 1 and Modal Box 2 are opened in order, clicking on the mask layer will cause both dialog boxes to be closed simultaneously. The correct logic should be to close Modal Box 2 the first time the mask layer is clicked, and Modal Box 1 will only be closed the second time the mask layer is clicked
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
This won't work unfortunately due to a limitation of Headless UI. You have to either nest your modals or close the first modal and open the second one in a timeout equal of the delay of the first modal. Some references:
Environment
Version
v3.9.0
Reproduction
https://stackblitz.com/edit/nuxt-ui-7tatth?file=app.vue
Description
Without setting prevent close, if Modal Box 1 and Modal Box 2 are opened in order, clicking on the mask layer will cause both dialog boxes to be closed simultaneously. The correct logic should be to close Modal Box 2 the first time the mask layer is clicked, and Modal Box 1 will only be closed the second time the mask layer is clicked
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: