I have input
in VueJS that is within form
and when I press enter
I do not want form
to be submitted.
Together with VueJS I'm using Quasar and I was able to assign the function call only on the enter
key:
<form @keydown.enter="evitarSubmit">
Function:
evitarSubmit () {
console.log('Tentou evitar')
}
I'm having trouble finding and working out a code that overrides the effect of enter
on form
, but I accept suggestions ...