If you need to use a confirm modal on the same element as wire:click use the following before the wire:click.

onclick="return confirm('Are you sure you want to delete this document!!') || event.stopImmediatePropagation()"
Last modified: 08/01/2021

Comments

Write a Reply or Comment

Your email address will not be published.