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
1 changed files with 2 additions and 2 deletions

View File

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