diff --git a/daterangepicker.js b/daterangepicker.js index 31319ed7..a9fc0f41 100644 --- a/daterangepicker.js +++ b/daterangepicker.js @@ -533,7 +533,7 @@ if (this.endDate) { //if both dates are visible already, do nothing - if (this.leftCalendar.month && this.rightCalendar.month && + if (!this.singleDatePicker && this.leftCalendar.month && this.rightCalendar.month && (this.startDate.format('YYYY-MM') == this.leftCalendar.month.format('YYYY-MM') || this.startDate.format('YYYY-MM') == this.rightCalendar.month.format('YYYY-MM')) && (this.endDate.format('YYYY-MM') == this.leftCalendar.month.format('YYYY-MM') || this.endDate.format('YYYY-MM') == this.rightCalendar.month.format('YYYY-MM'))