-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Description
In 2.2.1 and before, an event binding of @keypress.enter.prevent="enterPressed"
meant that enterPressed
was called whenever enter was pressed, and event.preventDefault()
is called every time enter is pressed.
In 2.2.2, it means that enterPressed
is called whenever enter was pressed, and event.preventDefault()
is called regardless of which key is pressed. The result is that an <input type="text" @keypress.enter.prevent="enterPressed">
will in effect not be editable in 2.2.2, but it was in 2.2.1 and before. See it demonstrated in this jsfiddle.
The workaround is easy. Just don't add .prevent
to the @keypressed
and call event.preventDefault()
in the callback, so FYI: I don't personally have an itch I need scratched.
geo4orce and Rahulgans
Metadata
Metadata
Assignees
Labels
No labels