vueComponent/ant-design-vue

select组件的autoClearSearchValue=false不生效bug

havenothingtosay opened this issue · 0 comments

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.8

Environment

vue3.2.45

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<a-select
    v-model:value="val"
    mode="multiple"
    :auto-clear-search-value="false"
/>

代码中绑定的val如果是ref([]),或者是reactive({val: []})中的深层属性,则配置的autoClearSearchValue=false不会生效,搜索值还是会被清空。
如果不用ref,或者是reactive([])直接定义,则可以正常使用

What is expected?

ref()定义变量值时,能正常保留搜索值

What is actually happening?

ref()定义变量值时,不能正常保留搜索值