Skip to content

Backdrop click crashes when opening child modal #532

@mauricekindermann

Description

@mauricekindermann

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

Image

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:

  1. Open a modal
  2. Click a button that opens another modal (child modal)
  3. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions