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

下拉框有焦点时,按下键盘任意一个键都会打开下拉框 #45609

Open
dyegral opened this issue Nov 1, 2023 · 0 comments
Open
Labels
improvement improve some features Inactive

Comments

@dyegral
Copy link

dyegral commented Nov 1, 2023

Reproduction link

https://ant-design.antgroup.com/components/select-cn

Steps to reproduce

官方文档就有这个问题 https://ant-design.antgroup.com/components/select-cn

  1. 点击下拉框展开下拉选项
  2. 同样的位置点击收起下拉选项(这两步后下拉框依旧会有焦点)
  3. 然后点击任何一个键盘按键,下拉选项会展开
    (疑惑 按回车能展开收起合理,任何按键都能展开很不合理)

What is expected?

点击除enter的其他按键,下拉选项不展开

What is actually happening?

点击任何一个键盘按键,下拉选项会展开

Environment Info
antd 5.10.2
React 18.0.0
System win10
Browser chrome114.0.5735.110

https://ant-design.antgroup.com/components/select-cn 文档中第一个例子第一个下拉框就可以复现
rc-select 也有同样的问题

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

No branches or pull requests

2 participants