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

Merge pull request #3507 from Steve-Mcl/fix-down-arrow-in-search

Fix down arrow triggering menu in search box
This commit is contained in:
Nick O'Leary 2022-04-05 23:32:59 +01:00 committed by GitHub
commit a63fee1223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,8 +105,8 @@
} }
}); });
this.element.on("keydown",function(e) { this.element.on("keydown",function(e) {
if (!menuShown && e.keyCode === 40) { if (!menuShown && e.keyCode === 40 && $(this).val() === '') {
//DOWN //DOWN (only show menu if search field is emty)
showMenu(); showMenu();
} }
}); });