diff --git a/src/index.jsx b/src/index.jsx index b4059d369f..f289c5352d 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -697,7 +697,7 @@ export default class DatePicker extends React.Component { if (noRanges) { onChange([changedDate, null], event); } else if (hasStartRange) { - if (isDateBefore(changedDate, startDate)) { + if (changedDate === null || isDateBefore(changedDate, startDate)) { onChange([changedDate, null], event); } else { onChange([startDate, changedDate], event);