From 17e26ecb71aa431068b0b7cc2a30d879eed959e1 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Tue, 30 Jan 2018 16:00:49 +0800 Subject: [PATCH] Revert "docs: fix DatePicker start end demo" This reverts commit b9120980fb813c83fe8215494bca7de0f4f8c27b. --- components/date-picker/demo/start-end.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/date-picker/demo/start-end.md b/components/date-picker/demo/start-end.md index baf8c6f921..371af0131e 100644 --- a/components/date-picker/demo/start-end.md +++ b/components/date-picker/demo/start-end.md @@ -40,7 +40,7 @@ class DateRange extends React.Component { if (!endValue || !startValue) { return false; } - return endValue.clone().endOf('day') <= startValue.valueOf(); + return endValue.valueOf() <= startValue.valueOf(); } onChange = (field, value) => {