vue js on right click code example
Example 1: javascript vue.js right click
<button @contextmenu="handler($event)">r-click</button>
methods : {
handler: function(e) {
//do stuff
e.preventDefault();
}
}
Example 2: vue right click
<button @contextmenu.prevent="handler">r-click</button>