1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Prevent Enter on search box from reloading page

Fixes #2678
This commit is contained in:
Nick O'Leary 2020-09-03 11:22:41 +01:00
parent ec368ae3fd
commit 3b9065b057
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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());