ant-design A phenomenon in which the Enter key is not applied when applying showTime to DatePicker

2nbm6dog  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(75)

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 |

kulphzqa

kulphzqa1#

https://ant.design/components/time-picker#time-picker-demo-basic
timepicker also has the same symptom.

相关问题