Skip to content

overlayParentActions feature re-opens parent modal after close #19561

@mansoorkhan96

Description

@mansoorkhan96

Package

filament/filament

Package Version

v4.7

Laravel Version

12

Livewire Version

v3

PHP Version

8.4

Problem description

When using overlayParentActions for actions, closing a child modal and parent modal at once by pressing Escape twice closes both the modals which is fine. However, there is a flicker, it re-opens the parent modal for a fraction of second and then closes it. This happens quite often in large or complex data driven modals, but it can be seen in simple modals by throttling the network to slow 4g in browser console networks tab.

Here is a video showing the problem:

result.mp4

Expected behavior

It should close both the modals without re-opening them again.

Steps to reproduce

  1. Install the repo by following regular Laravel installation guide
  2. Open / route and login using email: test@example.com and password: password
  3. Open browser console, and set network throttling to 4g Slow inside networks tab.
  4. Click On Modal Test page link in the sidebar navigation
  5. Click on Test action button and then click on Open Child Modal action button.
  6. Hit Escape twice quickly and it would close both the Modals but for a fraction of a second the parent modal would re-open and then close again.

Reproduction repository (issue will be closed if this is not valid)

https://github.com/mansoorkhan96/filament-modal-bug

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions