From 29524ba775e58c52e105a8a618fedb2889796bab Mon Sep 17 00:00:00 2001 From: joe Huang Date: Wed, 8 Feb 2023 10:55:33 +0800 Subject: [PATCH 1/2] fix #113 --- src/components/select/option.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/select/option.vue b/src/components/select/option.vue index 271c364c1..26b8d5a4f 100644 --- a/src/components/select/option.vue +++ b/src/components/select/option.vue @@ -96,6 +96,8 @@ }, isShow(){ const SelectInstance = this.SelectInstance; + // Avoid entering filter mode when selecting again. + if(!SelectInstance.filterQueryChange) return true const filterable = SelectInstance.filterable; const query = SelectInstance.query.toLowerCase().trim(); const filterByLabel = SelectInstance.filterByLabel; From b0f684fbf3bb94de6072896d67db456a4f87f5e3 Mon Sep 17 00:00:00 2001 From: joe Huang Date: Thu, 1 Feb 2024 10:44:52 +0800 Subject: [PATCH 2/2] fix types problem --- types/select.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/select.d.ts b/types/select.d.ts index aa40580cf..38f88d149 100644 --- a/types/select.d.ts +++ b/types/select.d.ts @@ -4,7 +4,7 @@ export declare const Select: DefineComponent<{ /** * 指定选中项目的 value 值,可以使用 v-model 双向绑定数据。单选时只接受 String 或 Number,多选时只接受 Array|String | Number | Array */ - 'model-value'?: ''; + 'model-value'?: string | number | (string | number)[]; /** * 是否支持多选