@syncfusion/ej2-calendars 20.4.40 → 20.4.42

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.
@@ -5830,7 +5830,7 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
5830
5830
  this.createControl();
5831
5831
  this.bindCalendarEvents();
5832
5832
  this.updateRange((this.isMobile ? [this.calendarElement] : [this.leftCalendar, this.rightCalendar]));
5833
- if (!isNullOrUndefined(this.endValue) && !isNullOrUndefined(this.startValue)) {
5833
+ if (!isNullOrUndefined(this.endValue) && !isNullOrUndefined(this.startValue) && !isNullOrUndefined(this.renderDayCell)) {
5834
5834
  this.disabledDateRender();
5835
5835
  }
5836
5836
  this.updateHeader();
@@ -6826,7 +6826,9 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
6826
6826
  if (!this.isMobile) {
6827
6827
  this.removeClassDisabled();
6828
6828
  }
6829
- this.disabledDateRender();
6829
+ if (!isNullOrUndefined(this.renderDayCell)) {
6830
+ this.disabledDateRender();
6831
+ }
6830
6832
  this.trigger('select', this.rangeArgs(event));
6831
6833
  }
6832
6834
  else if (+date < +this.startValue) {
@@ -8393,7 +8395,7 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
8393
8395
  if (!this.strictMode && (isDisabled)) {
8394
8396
  this.clearRange();
8395
8397
  }
8396
- if (!isNullOrUndefined(this.endValue) && !isNullOrUndefined(this.startValue) && !isDisabled) {
8398
+ if (!isNullOrUndefined(this.endValue) && !isNullOrUndefined(this.startValue) && !isDisabled && !isNullOrUndefined(this.renderDayCell)) {
8397
8399
  this.disabledDateRender();
8398
8400
  }
8399
8401
  this.errorClass();
@@ -8886,7 +8888,9 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
8886
8888
  if (!isNullOrUndefined(this.startValue) && !isNullOrUndefined(this.endValue)) {
8887
8889
  range = (Math.round(Math.abs((this.removeTimeValueFromDate(this.startValue).getTime() -
8888
8890
  this.removeTimeValueFromDate(this.endValue).getTime()) / (1000 * 60 * 60 * 24))) + 1);
8889
- this.disabledDateRender();
8891
+ if (!isNullOrUndefined(this.renderDayCell)) {
8892
+ this.disabledDateRender();
8893
+ }
8890
8894
  if (!isNullOrUndefined(this.disabledDayCnt)) {
8891
8895
  range = range - this.disabledDayCnt;
8892
8896
  this.disabledDayCnt = null;