-
- Notifications
You must be signed in to change notification settings - Fork 54k
Closed
react-component/picker
#22Labels
4.xIn Ant Design 4.0In Ant Design 4.0🐛 BugAnt Design Team had proved that this is a bug.Ant Design Team had proved that this is a bug.👷🏻♂️ Someone working on it
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
Place cursor into DatePicker input, press enter
What is expected?
The DatePicker calendar should disappear.
What is actually happening?
The DatePicker calendar does disappear, but the form is also submitting.
| Environment | Info |
|---|---|
| antd | 4.0.0-rc.3 |
| React | 16.12.0 |
| System | Ubuntu 18.04.3 LTS |
| Browser | Chrome 79 |
In Ant v3 pressing enter would toggle the calendar open/closed without submitting the form, see https://codesandbox.io/s/busy-gagarin-knbjw
In Ant v4 pressing enter still toggles the calendar open/closed, but it's also submitting the form. see https://codesandbox.io/s/angry-wright-selu2
Metadata
Metadata
Assignees
Labels
4.xIn Ant Design 4.0In Ant Design 4.0🐛 BugAnt Design Team had proved that this is a bug.Ant Design Team had proved that this is a bug.👷🏻♂️ Someone working on it