@syncfusion/ej2-schedule 20.2.45 → 20.2.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1431,7 +1431,7 @@ class HeaderRenderer {
1431
1431
  firstDate = getWeekFirstDate(resetTime(this.parent.selectedDate), this.parent.firstDayOfWeek);
1432
1432
  lastDate = addDays(firstDate, 7 * this.parent.activeViewOptions.interval);
1433
1433
  }
1434
- if (this.parent.currentView === 'Month') {
1434
+ else if (this.parent.currentView === 'Month') {
1435
1435
  const isCustomMonth = !isNullOrUndefined(this.parent.activeViewOptions.displayDate) ||
1436
1436
  this.parent.activeViewOptions.numberOfWeeks > 0;
1437
1437
  firstDate = isCustomMonth ? this.parent.activeView.getStartDate() : firstDateOfMonth(this.parent.selectedDate);
@@ -1439,10 +1439,10 @@ class HeaderRenderer {
1439
1439
  lastDateOfMonth(addMonths(firstDate, this.parent.activeViewOptions.interval - 1));
1440
1440
  }
1441
1441
  if (!isNullOrUndefined(prevNavEle)) {
1442
- this.toolbarObj.enableItems(prevNavEle, firstDate > this.parent.minDate);
1442
+ this.toolbarObj.enableItems(prevNavEle, firstDate > resetTime(this.parent.minDate));
1443
1443
  }
1444
1444
  if (!isNullOrUndefined(nextNavEle)) {
1445
- this.toolbarObj.enableItems(nextNavEle, lastDate < this.parent.maxDate);
1445
+ this.toolbarObj.enableItems(nextNavEle, lastDate < resetTime(this.parent.maxDate));
1446
1446
  }
1447
1447
  this.setCalendarMinMaxDate();
1448
1448
  }