wire:click
Last updated
Was this helpful?
Last updated
Was this helpful?
You can listen for click events within your using wire:click and provide an to run when clicked.
Add wire:click on any HTML elements, not just buttons and links.
When adding wire:click to links, you need to include the .prevent modifier to stop the default handling of a link in the browser. Otherwise, the browser will load the link and update the page's URL.