Skip to content
This repository was archived by the owner on Nov 16, 2018. It is now read-only.

Commit e137b10

Browse files
committed
Fix maxDate
1 parent 5864d9b commit e137b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DateTimePickerDays.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ DateTimePickerDays = React.createClass({
3131
prevMonth.date(days).startOf('week');
3232
nextMonth = moment(prevMonth).clone().add(42, "d");
3333
minDate = this.props.minDate ? this.props.minDate.clone().subtract(1, 'days') : this.props.minDate;
34-
maxDate = this.props.maxDate ? this.props.maxDate.clone().add(1, 'days') : this.props.maxDate;
34+
maxDate = this.props.maxDate ? this.props.maxDate.clone() : this.props.maxDate;
3535
html = [];
3636
cells = [];
3737
while (prevMonth.isBefore(nextMonth)) {

0 commit comments

Comments
 (0)