ant-design RangePicker 设置disabled={[true, false]} 并且同时设置 disabledDate={(current) => current && current < dayjs().startOf('day')},endDate无法修改

eblbsuwk  于 22天前  发布在  其他
关注(0)|答案(2)|浏览(110)

Steps to reproduce

参照 https://stackblitz.com/edit/react-hfxqdi?file=demo.tsx

What is expected?

startDate禁用,且endDate 可以修改日期

What is actually happening?

startDate禁用,endDate 未禁用但无法修改日期
| Environment | Info |
| ------------ | ------------ |
| antd | 5.17.3 |
| React | ^17.0.0 |
| System | macOS 14.1.1 (23B81) |
| Browser | 125.0.6422.142(正式版本) (arm64) |

sxissh06

sxissh062#

disabledDate is valid all the values even in disabled.range . It should warning developer that part of it is not in the range.

相关问题