generated from filamentphp/plugin-skeleton
-
-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Hi,
there is a rendering problem when the component is in a modal.
From what I saw, the problem is that the component uses the "ax-modal-opened" event (see the code below) to load the assets when the SPA mode is active, but Filament now has renamed it to "x-modal-opened" so the assets are never being loaded.
@if (FilamentView::hasSpaMode(url()->current()))
x-load="visible || event (ax-modal-opened)" <-- "ax-modal-opened" should be replaced with "x-modal-opened"
@else
x-load
@endif
I've tested the above change and everything seems to work as expected.
Thanks in advance!
How to reproduce the bug
Add the component to a form in a modal and you will see that most of the time the component assets are not being loaded.
Package Version
4.0
PHP Version
8.3 / 8.4
Laravel Version
12
Which operating systems does with happen with?
No response
Notes
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working