Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select组件自动分词在options为空的情况下 按enter键会导致删除,而且还是按照 ascii排序之后的删除 #7933

Open
1 task
alicemw opened this issue Nov 14, 2024 · 0 comments

Comments

@alicemw
Copy link

alicemw commented Nov 14, 2024

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

Version

4.2.6

Environment

官网即可复现

Reproduction link

https://www.antdv.com/components/select-cn

Steps to reproduce

你把官网的自动分词里面的options 改为一个空数组,然后做自动分词的操作,按下enter键,即可复现bug,按照现实需求,在需要自动分词的需求中基本不会说要带一个默认值 options=[{label:'a', value: 'a'}],现实的需求中 默认值基本就是一个空数组。这个设置为一个空数组的时候,按下enter键就会发生删除效果。

What is expected?

按enter 键不会删除东西

What is actually happening?

enter键会删除生成的tag项

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant