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
From version 2.2.2 to 2.2.1 it appears the logic for handling keypress events with a key-modifier and the prevent-modifier has changed.
In 2.2.1 an 'keypress.enter.prevent' would only prevent default action for the enter key, but in 2.2.2 it prevents every key.
I expected the behaviour to stay consistent with both releases, unless this change is intended.
Compare 2.2.1: https://jsfiddle.net/p4ay5v9c/2/ 2.2.2: https://jsfiddle.net/z17jjxh6/1/
From my understanding the changelog for 2.2.2 does not list this change, so I reckon it is not intentional.
The text was updated successfully, but these errors were encountered:
The change is not intentional, thanks for pointing it out. I'll take a look
Sorry, something went wrong.
add unit test of vuejs#5146
5209064
fix wrong order of generate modifier code (#5147)
4964b25
* fix wrong order of generate modifier code * add unit test of #5146 * Update events.js
Fixed via #5147
No branches or pull requests
m-schier commentedMar 9, 2017
•
edited
From version 2.2.2 to 2.2.1 it appears the logic for handling keypress events with a key-modifier and the prevent-modifier has changed.
In 2.2.1 an 'keypress.enter.prevent' would only prevent default action for the enter key, but in 2.2.2 it prevents every key.
I expected the behaviour to stay consistent with both releases, unless this change is intended.
Compare
2.2.1: https://jsfiddle.net/p4ay5v9c/2/
2.2.2: https://jsfiddle.net/z17jjxh6/1/
From my understanding the changelog for 2.2.2 does not list this change, so I reckon it is not intentional.
The text was updated successfully, but these errors were encountered: