Skip to content

AutoComplete删除最后一个字符后按Enter #7920

@hakityc

Description

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

Version

4.2.3

Environment

OS:Win 11;Browser: edge;Vue:v3.4.29

Reproduction link

https://www.antdv.com/components/auto-complete-cn

Steps to reproduce

  1. 在 Ant Design Vue 的 AutoComplete 组件中,输入一串字符。
  2. 删除最后一个字符。
  3. 按下 Enter 键。

What is expected?

删除最后一个字符后,按下 Enter 键时,AutoComplete 应该不会选中任何数据项。

What is actually happening?

按下 Enter 键时,AutoComplete 会选中已经消失的数据源中的第一项。

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