Reproduction link
https://ant.design/components/date-picker#components-date-picker-demo-time
Steps to reproduce
There appears to be an issue in the current Ant 5.x version where the datepicker and time are not applied when the Enter key is pressed. In version 4.x, the selected value is applied even when the Enter key is pressed.
What is expected?
When applying showTime to DatePicker, if you set the date and time and press the Enter key, the selected information should be reflected in the input and the calendar should be closed.
What is actually happening?
When applying showTime to DatePicker, if you set the date and time and press the Enter key, the value is not applied and the calendar does not close.
| Environment | Info |
| ------------ | ------------ |
| antd | 5.19.3 |
| React | 18.2.0 |
| System | window 10 |
| Browser | chrome |
1条答案
按热度按时间kulphzqa1#
https://ant.design/components/time-picker#time-picker-demo-basic
timepicker also has the same symptom.