diff --git a/src/components/select/option.vue b/src/components/select/option.vue index b4bc9968d..99e92f55a 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; 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)[]; /** * 是否支持多选