Browse Source

docs: fix DatePicker start end demo

Close #9163
pull/9225/head
Wei Zhu 7 years ago
parent
commit
b9120980fb
  1. 2
      components/date-picker/demo/start-end.md

2
components/date-picker/demo/start-end.md

@ -40,7 +40,7 @@ class DateRange extends React.Component {
if (!endValue || !startValue) { if (!endValue || !startValue) {
return false; return false;
} }
return endValue.valueOf() <= startValue.valueOf(); return endValue.clone().endOf('day') <= startValue.valueOf();
} }
onChange = (field, value) => { onChange = (field, value) => {

Loading…
Cancel
Save