Triggering Filament Action with a Livewire.dispatch event

Hi, I followed the Filament documentation and added an action to a Livewire component. I would like to open the modal using the Livewire.dispatch('openModal') event. Is this possible? I know the function is firing, if I put a diedump in there, it runs.
1 Reply
Luukd_2000
Luukd_2000OP15mo ago
I have figured it out: you have to create a second function to trigger the action. Add
$this->mountAction('editAction');
$this->mountAction('editAction');
to that function
Want results from more Discord servers?
Add your server