ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

AutoComplete 组件,嵌套其他输入组件,清空value时,嵌套组件内容不清空

Open Cikayo opened this issue 1 year ago • 0 comments
trafficstars

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

Version

4.2.3

Environment

Vue 3.4.29

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 使用 AutoComplete 组件,slot插入一个 Textarea 组件
  2. 在 Textarea 组件监听回车事件
  3. 当 Textarea 回车时,清空 AutoComplete 的 v-model,此时,Textarea 组件内容不清空

What is expected?

当设置 v-model 的值为空时,让 Textarea 组件内容也清空

What is actually happening?

当设置 v-model 的值为空时,让 Textarea 组件内容没有清空

Cikayo avatar Jul 25 '24 02:07 Cikayo