core: 修复ACM赛制计分

This commit is contained in:
undefined committed 2021-05-13 00:45:23 +08:00
1 parent a764211eee
commit 7c6e97fdfc
9 files changed
+25 -19

No files matched your search

@@ -166,7 +166,7 @@ export default class AutoComplete extends DOMAttachedObject {
content = content.split(',');
content = content[content.length - 1].trim();
}
if (this.isFocus && content >= this.options.minChar) {
if (this.isFocus && content.length >= this.options.minChar) {
if (!this.isOpen) {
this.open();
this.renderList();
@@ -175,9 +175,7 @@ export default class AutoComplete extends DOMAttachedObject {
}
detach() {
if (this.detached) {
return;
}
if (this.detached) return;
super.detach();
this.$dom.off(`focus.${this.eventNS}`);
this.$dom.off(`blur.${this.eventNS}`);