@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.
@@ -177,6 +177,8 @@ let CalendarBase = class CalendarBase extends Component {
177
177
  }
178
178
  }
179
179
  minMaxUpdate(value) {
180
+ this.min = isNullOrUndefined(this.min) || !(+this.min) ? this.min = new Date(1900, 0, 1) : this.min;
181
+ this.max = isNullOrUndefined(this.max) || !(+this.max) ? this.max = new Date(2099, 11, 31) : this.max;
180
182
  if (!(+this.min <= +this.max)) {
181
183
  this.setProperties({ min: this.min }, true);
182
184
  addClass([this.element], OVERLAY);
@@ -184,8 +186,6 @@ let CalendarBase = class CalendarBase extends Component {
184
186
  else {
185
187
  removeClass([this.element], OVERLAY);
186
188
  }
187
- this.min = isNullOrUndefined(this.min) || !(+this.min) ? this.min = new Date(1900, 0, 1) : this.min;
188
- this.max = isNullOrUndefined(this.max) || !(+this.max) ? this.max = new Date(2099, 11, 31) : this.max;
189
189
  if (+this.min <= +this.max && value && +value <= +this.max && +value >= +this.min) {
190
190
  this.currentDate = new Date(this.checkValue(value));
191
191
  }