From 87dba05e2abdcf1264c370188c445b784466ecae Mon Sep 17 00:00:00 2001 From: JuniorTour Date: Tue, 20 Oct 2020 22:03:02 +0800 Subject: [PATCH] docs: fix invalid disabledDate of RangePicker demo (#27112) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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: 偏右 --- components/date-picker/demo/select-in-range.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/date-picker/demo/select-in-range.md b/components/date-picker/demo/select-in-range.md index 1295f62c54..c37cdeba7c 100644 --- a/components/date-picker/demo/select-in-range.md +++ b/components/date-picker/demo/select-in-range.md @@ -34,7 +34,9 @@ const App = () => { { - setDates(value); + const [start, end] = value; + const [oldStart, oldEnd] = dates; + setDates([start || oldStart, end || oldEnd]); }} /> );