Skip to content

[Bug]: Render problem on modals #197

@quelo83

Description

@quelo83

What happened?

Hi,
there is a rendering problem when the component is in a modal.

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions