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

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