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:
Could also just disable the wire:click with -> livewireClickHandlerEnabled(false)
Jump to solution
3 Replies
awcodes
awcodes13mo ago
Try ->alpineClickHandler() instead of exatraAttributes() that will disable the wire:click
Solution
awcodes
awcodes13mo ago
Could also just disable the wire:click with -> livewireClickHandlerEnabled(false)
binaryfire
binaryfireOP13mo ago
Nice thank you. Both of those will come in handy.

Did you find this page helpful?