mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
docs: fix invalid disabledDate of RangePicker demo (#27112)
* docs: fix invalid disabledDate of RangePicker demo Close https://github.com/ant-design/ant-design/issues/26885 * Update select-in-range.md Co-authored-by: 偏右 <afc163@gmail.com>
This commit is contained in:
parent
27e9926438
commit
87dba05e2a
@ -34,7 +34,9 @@ const App = () => {
|
||||
<RangePicker
|
||||
disabledDate={disabledDate}
|
||||
onCalendarChange={value => {
|
||||
setDates(value);
|
||||
const [start, end] = value;
|
||||
const [oldStart, oldEnd] = dates;
|
||||
setDates([start || oldStart, end || oldEnd]);
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user