Update select.vue

typo
This commit is contained in:
Aresn 2021-01-11 15:42:37 +08:00 committed by GitHub
parent a80dcf468e
commit 2f29929654
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -334,7 +334,7 @@
lastRemoteQuery: '', lastRemoteQuery: '',
unchangedQuery: true, unchangedQuery: true,
hasExpectedValue: false, hasExpectedValue: false,
isTyping: false, // #728 isTyping: false, // #728
preventRemoteCall: false, preventRemoteCall: false,
filterQueryChange: false, // #4273 filterQueryChange: false, // #4273
}; };
@ -582,7 +582,7 @@
hideMenu () { hideMenu () {
this.toggleMenu(null, false); this.toggleMenu(null, false);
// fix #728 // fix #728
this.isTyping = false this.isTyping = false;
setTimeout(() => this.unchangedQuery = true, ANIMATION_TIMEOUT); setTimeout(() => this.unchangedQuery = true, ANIMATION_TIMEOUT);
}, },
onClickOutside(event){ onClickOutside(event){
@ -738,7 +738,7 @@
}, ANIMATION_TIMEOUT); }, ANIMATION_TIMEOUT);
}, },
onQueryChange(query) { onQueryChange(query) {
this.isTyping = true this.isTyping = true;
if (query.length > 0 && query !== this.query) { if (query.length > 0 && query !== this.query) {
// in 'AutoComplete', when set an initial value asynchronously, // in 'AutoComplete', when set an initial value asynchronously,
// the 'dropdown list' should be stay hidden. // the 'dropdown list' should be stay hidden.