-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pressing Enter key submits the form #81
Comments
In your form element add @submit.prevent="" |
i'm using |
my bad did not realize you were using vue-formular |
Hi @purepear thanks for bringing this up. I had |
Hi @sagalbot, @nacr-dev i did some testing and i fixed it by adding |
please more descript about problam ... |
this hasn't been fixed yet? :( |
@ReneMoraales |
Having this issue as well. |
Same Here. Having this issue as well. |
I added |
I had to add it to the parent component, not to the form itself, as v-select in my case is not a direct child of the
|
I dont understand why this is closed. This is still an issue. Why would pressing enter in the search field of the v-select cause the form to submit? Seems like very unexpected behaviour. |
Add @keydown.enter.prevent.self to form tag or parent of where event fires. |
Hi @gdev219 , thank you, works perfectly! |
Just to clarify, it turns out that it's enough to put
|
Add So enter to submit form still work in native form element (outside v-select element) |
Adding @keypress.enter.native.prevent="" isn't a good solution for me. The @keypress.enter.native.prevent="" prevent the enter key in the multiselect so the user can't chose an option with press enter. |
Hello I got an answer here please take a look Vue prevent form submit on enter thanks |
The only thing that worked for me was using the Template: Function: This should be the accepted answer imo :) |
When using up/down keys and then enter key to select it submits the form.. how do i stop it propagating the event?
The text was updated successfully, but these errors were encountered: