Skip to content

Commit

Permalink
Prevent Enter on search box from reloading page
Browse files Browse the repository at this point in the history
Fixes #2678
  • Loading branch information
knolleary committed Sep 3, 2020
1 parent ec368ae commit 3b9065b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@
if (evt.keyCode === 27) {
that.element.val("");
}
if (evt.keyCode === 13) {
evt.preventDefault();
}
})
this.element.on("keyup",function(evt) {
that._change($(this).val());
Expand Down

0 comments on commit 3b9065b

Please sign in to comment.