@syncfusion/ej2-calendars 31.1.19 → 31.1.21

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.
@@ -192,6 +192,8 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
192
192
  }
193
193
  };
194
194
  CalendarBase.prototype.minMaxUpdate = function (value) {
195
+ this.min = isNullOrUndefined(this.min) || !(+this.min) ? this.min = new Date(1900, 0, 1) : this.min;
196
+ this.max = isNullOrUndefined(this.max) || !(+this.max) ? this.max = new Date(2099, 11, 31) : this.max;
195
197
  if (!(+this.min <= +this.max)) {
196
198
  this.setProperties({ min: this.min }, true);
197
199
  addClass([this.element], OVERLAY);
@@ -199,8 +201,6 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
199
201
  else {
200
202
  removeClass([this.element], OVERLAY);
201
203
  }
202
- this.min = isNullOrUndefined(this.min) || !(+this.min) ? this.min = new Date(1900, 0, 1) : this.min;
203
- this.max = isNullOrUndefined(this.max) || !(+this.max) ? this.max = new Date(2099, 11, 31) : this.max;
204
204
  if (+this.min <= +this.max && value && +value <= +this.max && +value >= +this.min) {
205
205
  this.currentDate = new Date(this.checkValue(value));
206
206
  }