Skip to content

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

@Cikayo

Description

@Cikayo
  • 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 组件内容没有清空

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions