-
Notifications
You must be signed in to change notification settings - Fork 33
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 to select item submits form #196
Labels
Comments
@eberkund Thanks for using the component. You can solve the problem using <form>
<cool-select
v-model="selected"
:items="items"
placeholder="Select name"
@keydown.enter.native.prevent
/>
</form> I checked it works. In my component, I think I need to save the |
iliyaZelenko
added
enhancement
New feature or request
question
Further information is requested
labels
Sep 13, 2019
iliyaZelenko
added a commit
that referenced
this issue
Sep 13, 2019
… component is inside the form) re #196
iliyaZelenko
added a commit
that referenced
this issue
Sep 13, 2019
iliyaZelenko
pushed a commit
that referenced
this issue
Sep 13, 2019
## [2.11.1](v2.11.0...v2.11.1) (2019-09-13) ### Bug Fixes * **input:** do not submit the form if there was a menu choice (if the component is inside the form) ([50bc64d](50bc64d)), closes [#196](#196)
rin4573281133639
added a commit
to rin4573281133639/iliyaZelenko9
that referenced
this issue
Feb 5, 2022
## [2.11.1](iliyaZelenko/vue-cool-select@v2.11.0...v2.11.1) (2019-09-13) ### Bug Fixes * **input:** do not submit the form if there was a menu choice (if the component is inside the form) ([50bc64d](iliyaZelenko/vue-cool-select@50bc64d)), closes [#196](iliyaZelenko/vue-cool-select#196)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I press the enter key to select an item the form gets submitted, this differs from the behaviour of the built in browser select. Is there a way to change this behaviour? Maybe block this event from getting through somehow.
Thanks, great component!
The text was updated successfully, but these errors were encountered: