-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
3.2.14
Environment
组件本身的问题
Reproduction link
https://www.antdv.com/components/date-picker-cn
Steps to reproduce
通过disabledDate和disabledTime属性设置只能选择未来时间,在今天之后的某一天先选择了一个禁止的时间在切回今天,面板的确定按钮依然可以点击
例子:现在是2023-2-27 17:32,我先设置了2023-3-1 10:00,再将日期切回2023-2-27,此时面板右上角显示的时间为2023-2-27 10:00(只有日期发生了变化,但小时和分钟没有),这个时间相对于2023-2-27 17:32显然是过去时间,但选择面板的确定按钮没有被禁用
What is expected?
切换日期时能准确校验当前选择的date和time是否应该禁止确定选择
What is actually happening?
被禁止的time依然可以被确定选择