I have a parent div which I am triggering wire:click on.
This div is a card which when the user clicks, displays some information to the user.
Within the div is a “rename” button - unfortunately, clicking this rename button also triggers the wire:click on the parent element.
My question is: what is the best practice to prevent the wire:click call when a specific child element is clicked? I have tried passing $event.target.value
to the controller, so I can return null if the rename button was clicked, but unfortunately $event.target.value
does not contain anything. Maybe there is a better way to implement this as I do believe it would work.
Any idea?
Many thanks!