<div id="largeArea" v-on:click="do_X">
<button>Button</button>
</div>
So I have this issue in Vue where I don't want "do_X" to trigger when I click on the button, although its a part of the largeArea.
<div id="largeArea" v-on:click="do_X">
<button>Button</button>
</div>
So I have this issue in Vue where I don't want "do_X" to trigger when I click on the button, although its a part of the largeArea.
I found that using the 'stop' event modifier on the child element worked for me. eg
From the documentation, use the
self
event modifier to only capture events originating on the element itself...