-
-
Notifications
You must be signed in to change notification settings - Fork 150
Description
Hey! I was stress testing something I'm building and ran into a race condition I cannot solve:
https://www.loom.com/share/b2b661b8f07247c98577ce4de7e5af82
Environment: wire-elements/modal ^3.0, Laravel 12, Livewire 3
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.
Thanks Philo!