FilamentF
Filament12mo ago
abiroot

Trigger an Event from a custom field blade file

I've been trying to solve this for hours now, without any luck.

I have a custom field component with a button in it. When clicking on that button, I want to be able to update a state field in the parent form.

I've tried everything, #[On attribute, $listeners and even registerListeners but nothing is being able to caputre the event sent from the blade file.

I'm using wire:click="$dispatch('reshuffle')" to dispatch that event.
Was this page helpful?