2.6.10
https://codesandbox.io/s/vue-template-yfmeh
Create a <form /> with and @submit handler. using either the .prevent and .once handlers work as expected, however in combination it seems to prevent default the first time, but not prevent default the second time resulting in a page refresh.
the form to be submitted only once with no page refresh/reload
the form submits correctly the first time, but on the second click it causes a page reload
this is expected once will add only the event listener once. Use two event listeners if you want to always prevent default @submit.prevent @submit.prevent.once="..."
Most helpful comment
this is expected
oncewill add only the event listener once. Use two event listeners if you want to always prevent default@submit.prevent @submit.prevent.once="..."