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 mode 为 tags , open 传入 false, 按下 Enter 会触发 Form 的 submit 事件 #29590

Closed
1 task done
raohong opened this issue Mar 2, 2021 · 0 comments · Fixed by react-component/select#604
Closed
1 task done
Assignees

Comments

@raohong
Copy link

raohong commented Mar 2, 2021

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

如题,Select mode 为 tags ,open 设为 false, 按 Enter 就会触发 Form 的提交

<Form>
  <Select mode="tags" open={false} />
</Form>

What is expected?

不触发 submit 事件

What is actually happening?

keydown 没有被处理, 触发了提交?

Environment Info
antd 4.13.0
React 16.8
System windows
Browser chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants