[Vuejs]-How to handle click checkbox without parent event in Vuejs?

0๐Ÿ‘

โœ…

You can use Event Modifiers in vue.js.

<input type="checkbox" v-on:click.stop />

or

<input type="checkbox" @click.stop />

0๐Ÿ‘

<input type="checkbox" onClick={e => e.stopPropagation()}/>

Leave a comment