Skip to content

Commit

Permalink
Fix regression for single date picker
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrossman committed Mar 11, 2015
1 parent c49abbd commit 6a2407d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daterangepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@
var month = parseInt(cal.find('.monthselect').val(), 10);
var year = cal.find('.yearselect').val();

if (!isLeft) {
if (!isLeft && !this.singleDatePicker) {
if (year < this.startDate.year() || (year == this.startDate.year() && month < this.startDate.month())) {
month = this.startDate.month();
year = this.startDate.year();
Expand Down

0 comments on commit 6a2407d

Please sign in to comment.