fixed bug
This commit is contained in:
@@ -281,7 +281,7 @@ class autoComplete {
|
|||||||
if (!key || (key < 35 || key > 40) && ![autoComplete.ENTER, autoComplete.ESC].includes(key)) {
|
if (!key || (key < 35 || key > 40) && ![autoComplete.ENTER, autoComplete.ESC].includes(key)) {
|
||||||
let val = entity.element.value;
|
let val = entity.element.value;
|
||||||
entity.lastValue = val;
|
entity.lastValue = val;
|
||||||
if (val.length >= options.minChars) {
|
if (val && val.length >= options.minChars) {
|
||||||
this.showResult(val, entity);
|
this.showResult(val, entity);
|
||||||
} else {
|
} else {
|
||||||
this.hideBox(sgBox.box);;
|
this.hideBox(sgBox.box);;
|
||||||
|
|||||||
Reference in New Issue
Block a user