binding keyup.tab.prevent in vue cannot prevent tab browser default events
related codes
@keyup.stop.prevent="onKeyup"
methods: {
onKeyup(e){
e.preventDefault();
switch (e.keyCode) {
// tab
case 9:
......
}
return false
}
}
as in the code above, keyup is bound in template and also specifies that e.preventDefault () and return false, are also used in the modifier prevent,onKeyup method, but neither prevents the default event of the tab key.