Remove keyup event listener for forms
Let the browser take care of when to do implicit submission.
This commit is contained in:
@@ -120,10 +120,4 @@ module.exports = function(el) {
|
||||
on(el, "submit", function(event) {
|
||||
formAction.call(that, el, event)
|
||||
})
|
||||
|
||||
on(el, "keyup", function(event) {
|
||||
if (event.keyCode === 13) {
|
||||
formAction.call(that, el, event)
|
||||
}
|
||||
}.bind(this))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user