FilamentF
Filament15mo ago
ruddy

Dispatch Modal doesn't work

Hello everyone,

Before I ask my question, I took some time to review previous discussions related to dispatching modals in FilamentPHP. I have a modal in my view that looks like this:

<x-filament::modal id="edit-user">
    hello
</x-filament::modal>


This code is saved in //filament/page/test.blade.php.

My table action is set up like this:

Tables\Actions\Action::make('test-modal')
    ->action(fn ($livewire) => $livewire->dispatch('open-modal', id: 'edit-user')),


However, when I click the button, nothing happens. Did I miss something? Any help would be greatly appreciated!

Thank you!
Was this page helpful?