fixed bug

This commit is contained in:
huangjx
2022-07-29 20:17:08 +08:00
parent 3a00325042
commit 162de469ab

View File

@@ -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);;