DatePicker-DisableDate 如果某个月有一天被禁用,那么月份选择的面板,整月都被禁用(年份同) #26697
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
https://ant.design/components/date-picker-cn/#components-date-picker-demo-disabled-date
Steps to reproduce
- 打开DatePicker,查看发现 2020-09-11之前的日期被禁用;
- 将面板调整至月份选择,发现1-9月被置灰;
- 将面板调整至年份选择,发现 2020年以及之前的年份被置灰。
What is expected?
期望逻辑是,全月的日期 都不可选择时,该月/年份才会被置灰;
不然很容易漏掉 一些可选的数据
What is actually happening?
只要这个月存在disable的日期,整个月份都被置灰了,而且当天对应的年份,在年份选择面板中 也被置灰了。
Environment | Info |
---|---|
antd | 4.6.3 |
React | 16.10.2 |
System | macOS Catalina 10.15.2 |
Browser | 版本 81.0.4044.138(正式版本) (64 位) |
我们这边的业务需求是,根据数据A,来判断可选的时间范围,后端返回一段可选的时间范围;
所以用户需要从年份开始查看 可选范围。