Prevent an action from sending a backend request
Hi. I've got an action that's just used for firing some JS (which I've added using
x-on:click
in extraAttributes
). I need to stop it sending a request to the backend. Any ideas how I could do that?Solution:Jump to solution
Could also just disable the wire:click with -> livewireClickHandlerEnabled(false)
3 Replies
Try ->alpineClickHandler() instead of exatraAttributes() that will disable the wire:click
Solution
Could also just disable the wire:click with -> livewireClickHandlerEnabled(false)
Nice thank you. Both of those will come in handy.