Fix autocomplete selection when hitting Enter
This commit is contained in:
parent
153d9c6b2c
commit
09a6c8b067
@ -116,6 +116,10 @@ function enableHistory() {
|
|||||||
inputTrap.bind("enter", function() {
|
inputTrap.bind("enter", function() {
|
||||||
position = 0;
|
position = 0;
|
||||||
|
|
||||||
|
if (input.data("autocompleting")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
const text = input.val();
|
const text = input.val();
|
||||||
|
|
||||||
if (text.length === 0) {
|
if (text.length === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user