Skip to content

Commit

Permalink
Temporary fix so master branch doesn't have a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrossman committed Dec 17, 2015
1 parent 571a9dd commit 4a86db9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions daterangepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,9 @@
selected.hour(0);
}

if (selected.isBefore(this.startDate))
selected = this.startDate.clone();

if (selected.isAfter(maxDate))
selected = maxDate.clone();

Expand Down

0 comments on commit 4a86db9

Please sign in to comment.