Skip to content
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

Prevent submitting inside form #249

Merged
merged 1 commit into from
Oct 2, 2017
Merged

Prevent submitting inside form #249

merged 1 commit into from
Oct 2, 2017

Conversation

Venefilyn
Copy link
Contributor

I discovered that when vue-select is inside a form it does not prevent a submit when hitting enter. Having a guess since it prevents on keyup instead of keydown - As forms submit when pressing enter, not when releasing.

Forms submit when pressing enter (`keydown`), not when releasing (`keyup`).
@sagalbot
Copy link
Owner

@SpyTec - thanks! This has been ongoing for a while. Can you take a look at the tests?

@mrdoinel
Copy link

I think this is quite an import blocker when vue-select is used for tagging.
Any updates on this PR ?

@sagalbot
Copy link
Owner

sagalbot commented Oct 2, 2017

@sagalbot
Copy link
Owner

sagalbot commented Oct 2, 2017

tests failing due to keyup in searchSubmit. will fix post-merge.

@sagalbot sagalbot merged commit 33491ad into sagalbot:master Oct 2, 2017
sagalbot added a commit that referenced this pull request Oct 2, 2017
@udimitri udimitri mentioned this pull request Apr 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants