Level 60
https://vuejs.org/guide/essentials/event-handling.html#event-modifiers
.stop modifier should do it
<button @click.stop="openModal()">Open Modal</button>
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello guys, I try to implement a button which click on it and open a dialog/modal but the problem is the modal dont open because when click it the parent click event activate without open the modal.
https://vuejs.org/guide/essentials/event-handling.html#event-modifiers
.stop modifier should do it
<button @click.stop="openModal()">Open Modal</button>
Please or to participate in this conversation.