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
{{ message }}
Repository navigation
Backdrop click crashes when opening child modal #532
When you open a child modal and quickly click the backdrop (interuptting the child modal), the child modal flickers then crashes, and can only be fixed by a page refresh.
It's simple enough to reproduce:
Open a modal
Click a button that opens another modal (child modal)
Click the backdrop immediately while it's transitioning
I noticed at the bottom of this page (Demo Time) you have a Slide-Over example that uses a child compontent, and the dismiss seems to interupt it nicely. https://wire-elements.dev/pro
The backdrop is not the direct issue - even if I disable the backdrop and use a Cancel button I can reproduce it, as shown in the video above.
Is this a limitation fo the free version, does Pro solve this with modals? Or is this an issue in both verisons? If Pro solves it I'll just buy it.
This is likely because the modal hasn't finished the entire process of closing. One way would be to add a check that waits until the element is hidden.
Activity
PhiloNL commentedon Oct 3, 2025
This is likely because the modal hasn't finished the entire process of closing. One way would be to add a check that waits until the element is hidden.
Not tested, but it could be something like:
So it will call
$dispatch('openModal'...once the modal/overlay is hidden. (make sure to update the selector)