Fix a bug related to arrow keys on suggestions

This commit is contained in:
deepjyoti30
2020-08-10 15:35:15 +05:30
parent 45e624e907
commit aaf8b63af6

View File

@@ -50,7 +50,7 @@ function autocomplete(inp, passedValues) {
/*execute a function presses a key on the keyboard:*/
inp.addEventListener("keydown", function(e) {
var x = document.getElementById(this.id + "autocomplete-list");
var x = document.getElementById(this.id + "-autocomplete-list");
if (x) x = x.getElementsByTagName("div");
if (e.keyCode == 40) {
/*If the arrow DOWN key is pressed,