<router-link to="SOME_ROUTE">
<div class="outer-div">
<div class="inner-div" v-on:click="doSomething"></div>
</div>
</router-link>
I am currently working on creating a link with an image included. My goal is to have the inner div perform an action without changing the route. I have attempted using the event modified v-on:click.stop
, but it does not prevent the route from changing when the .inner-div
is clicked. Any guidance on how to achieve this would be greatly appreciated. Thank you for your assistance.