ant-design / ant-design

An enterprise-class UI design language and React UI library
https://ant.design
MIT License
91.03k stars 47.52k forks source link

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

Open CherishLily opened 1 week ago

CherishLily commented 1 week ago

Reproduction link

Edit on StackBlitz

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)
stackblitz[bot] commented 1 week ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.