@syncfusion/ej2-schedule 20.2.43 → 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.
@@ -1435,7 +1435,7 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
1435
1435
  firstDate = getWeekFirstDate(resetTime(this.parent.selectedDate), this.parent.firstDayOfWeek);
1436
1436
  lastDate = addDays(firstDate, 7 * this.parent.activeViewOptions.interval);
1437
1437
  }
1438
- if (this.parent.currentView === 'Month') {
1438
+ else if (this.parent.currentView === 'Month') {
1439
1439
  var isCustomMonth = !isNullOrUndefined(this.parent.activeViewOptions.displayDate) ||
1440
1440
  this.parent.activeViewOptions.numberOfWeeks > 0;
1441
1441
  firstDate = isCustomMonth ? this.parent.activeView.getStartDate() : firstDateOfMonth(this.parent.selectedDate);
@@ -1443,10 +1443,10 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
1443
1443
  lastDateOfMonth(addMonths(firstDate, this.parent.activeViewOptions.interval - 1));
1444
1444
  }
1445
1445
  if (!isNullOrUndefined(prevNavEle)) {
1446
- this.toolbarObj.enableItems(prevNavEle, firstDate > this.parent.minDate);
1446
+ this.toolbarObj.enableItems(prevNavEle, firstDate > resetTime(this.parent.minDate));
1447
1447
  }
1448
1448
  if (!isNullOrUndefined(nextNavEle)) {
1449
- this.toolbarObj.enableItems(nextNavEle, lastDate < this.parent.maxDate);
1449
+ this.toolbarObj.enableItems(nextNavEle, lastDate < resetTime(this.parent.maxDate));
1450
1450
  }
1451
1451
  this.setCalendarMinMaxDate();
1452
1452
  };