Skip to content

Commit e615ca5

Browse files
committed
fix(picker): add string proptype for enddates also
1 parent 4d35c2f commit e615ca5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ DatetimeRangePicker.propTypes = {
244244
onStartDateFocus: PropTypes.func,
245245
onStartDateChange: PropTypes.func,
246246
pickerClassName: PropTypes.string,
247-
defaultEndDate: PropTypes.oneOfType([PropTypes.instanceOf(moment), PropTypes.instanceOf(Date)]),
248-
endDate: PropTypes.oneOfType([PropTypes.instanceOf(moment), PropTypes.instanceOf(Date)]),
247+
defaultEndDate: PropTypes.oneOfType([PropTypes.instanceOf(moment), PropTypes.instanceOf(Date), PropTypes.string]),
248+
endDate: PropTypes.oneOfType([PropTypes.instanceOf(moment), PropTypes.instanceOf(Date), PropTypes.string]),
249249
endTimeConstraints: PropTypes.object, // eslint-disable-line
250250
startDate: PropTypes.oneOfType([PropTypes.instanceOf(moment), PropTypes.instanceOf(Date), PropTypes.string]),
251251
defaultStartDate: PropTypes.oneOfType([PropTypes.instanceOf(moment), PropTypes.instanceOf(Date), PropTypes.string]),

0 commit comments

Comments
 (0)