From a80dcf468ea0e852d70ac747749d5b308d366109 Mon Sep 17 00:00:00 2001 From: dellen shang Date: Wed, 18 Nov 2020 18:38:12 +0900 Subject: [PATCH 1/2] fix #728 --- src/components/select/select.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index c788bed54..74f4bd69e 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -334,6 +334,7 @@ lastRemoteQuery: '', unchangedQuery: true, hasExpectedValue: false, + isTyping: false, // #728 preventRemoteCall: false, filterQueryChange: false, // #4273 }; @@ -451,7 +452,7 @@ let children = cOptions.children; // remove filtered children - if (this.filterable){ + if (this.filterable && this.isTyping){ // #728 let option show full when reclick it children = children.filter( ({componentOptions}) => this.validateOption(componentOptions) ); @@ -580,6 +581,8 @@ }, hideMenu () { this.toggleMenu(null, false); + // fix #728 + this.isTyping = false setTimeout(() => this.unchangedQuery = true, ANIMATION_TIMEOUT); }, onClickOutside(event){ @@ -735,6 +738,7 @@ }, ANIMATION_TIMEOUT); }, onQueryChange(query) { + this.isTyping = true if (query.length > 0 && query !== this.query) { // in 'AutoComplete', when set an initial value asynchronously, // the 'dropdown list' should be stay hidden. From 2f29929654563f2dadff258ab1cc58e586c0b088 Mon Sep 17 00:00:00 2001 From: Aresn Date: Mon, 11 Jan 2021 15:42:37 +0800 Subject: [PATCH 2/2] Update select.vue typo --- src/components/select/select.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 74f4bd69e..56bd7f4ec 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -334,7 +334,7 @@ lastRemoteQuery: '', unchangedQuery: true, hasExpectedValue: false, - isTyping: false, // #728 + isTyping: false, // #728 preventRemoteCall: false, filterQueryChange: false, // #4273 }; @@ -582,7 +582,7 @@ hideMenu () { this.toggleMenu(null, false); // fix #728 - this.isTyping = false + this.isTyping = false; setTimeout(() => this.unchangedQuery = true, ANIMATION_TIMEOUT); }, onClickOutside(event){ @@ -738,7 +738,7 @@ }, ANIMATION_TIMEOUT); }, onQueryChange(query) { - this.isTyping = true + this.isTyping = true; if (query.length > 0 && query !== this.query) { // in 'AutoComplete', when set an initial value asynchronously, // the 'dropdown list' should be stay hidden.