@syncfusion/ej2-calendars 20.2.40 → 20.2.46

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.
@@ -2521,7 +2521,7 @@ var Calendar = /** @__PURE__ @class */ (function (_super) {
2521
2521
  if (!isNullOrUndefined(this.value)) {
2522
2522
  this.setProperties({ value: this.value }, true);
2523
2523
  }
2524
- if (!this.isMultiSelection && +this.value !== Number.NaN && (+this.value !== +this.previousDate || this.previousDate == null
2524
+ if (!this.isMultiSelection && +this.value !== Number.NaN && (!isNullOrUndefined(this.value) && !isNullOrUndefined(this.previousDate) && +new Date(this.value.toDateString()) !== +new Date(this.previousDate.toDateString()) || this.previousDate == null
2525
2525
  && !isNaN(+this.value))) {
2526
2526
  this.changeEvent(e);
2527
2527
  }
@@ -3777,7 +3777,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3777
3777
  this.isPopupClicked = false;
3778
3778
  };
3779
3779
  DatePicker.prototype.documentHandler = function (e) {
3780
- if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(e.target) ||
3780
+ if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(e.target) && e.type !== 'mousedown' ||
3781
3781
  (this.popupObj.element && this.popupObj.element.contains(e.target)))) && e.type !== 'touchstart') {
3782
3782
  e.preventDefault();
3783
3783
  }
@@ -8263,7 +8263,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
8263
8263
  }
8264
8264
  var target = e.target;
8265
8265
  if (!this.inputWrapper.container.contains(target) ||
8266
- (!isNullOrUndefined(this.popupObj) && !closest(target, '[id="' + this.popupWrapper.id + '"]'))) {
8266
+ (!isNullOrUndefined(this.popupObj) && !closest(target, '[id="' + this.popupWrapper.id + '"]') && e.type === 'mousedown')) {
8267
8267
  if (e.type !== 'touchstart' && ((e.type === 'mousedown') ||
8268
8268
  this.closeEventArgs && !this.closeEventArgs.cancel)) {
8269
8269
  e.preventDefault();
@@ -11363,7 +11363,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11363
11363
  };
11364
11364
  TimePicker.prototype.documentClickHandler = function (event) {
11365
11365
  var target = event.target;
11366
- if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(target) ||
11366
+ if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(target) && event.type !== 'mousedown' ||
11367
11367
  (this.popupObj.element && this.popupObj.element.contains(target)))) && event.type !== 'touchstart') {
11368
11368
  event.preventDefault();
11369
11369
  }
@@ -12503,7 +12503,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
12503
12503
  };
12504
12504
  DateTimePicker.prototype.documentClickHandler = function (event) {
12505
12505
  var target = event.target;
12506
- if ((!isNullOrUndefined(this.popupObject) && (this.inputWrapper.container.contains(target) ||
12506
+ if ((!isNullOrUndefined(this.popupObject) && (this.inputWrapper.container.contains(target) && event.type !== 'mousedown' ||
12507
12507
  (this.popupObject.element && this.popupObject.element.contains(target)))) && event.type !== 'touchstart') {
12508
12508
  event.preventDefault();
12509
12509
  }