vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜

Home Page:https://antdv.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

select组件的autoClearSearchValue=false不生效bug

havenothingtosay opened this issue · 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()定义变量值时,不能正常保留搜索值