set focus to first suggestion by down arrow key

This commit is contained in:
Christophe 2021-03-31 18:34:00 +02:00
parent 724ee6c6f4
commit 67c49775fd

View File

@ -41,6 +41,10 @@ class Autocomplete {
this.dropdown.hide();
return;
}
if (e.keyCode === 40) {
this.dropdown._menu.children[0]?.focus();
return;
}
});
}