mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: 修复ACM赛制计分
This commit is contained in:
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}`);
|
||||
|
||||
Reference in new issue
Block a user