Answers for "vue @submit.prevent"

4

@keyup.enter vue

<input v-on:keyup.enter="submit">
<!-- Also works like this: -->
<input @keyup.enter="submit">
Posted by: Guest on July-16-2020
0

vue prevent button from submitting form

<form v-on:submit.prevent>
Posted by: Guest on April-14-2021

Browse Popular Code Answers by Language