@syncfusion/ej2-calendars 33.2.4 → 33.2.6

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.
@@ -5736,6 +5736,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
5736
5736
  _this.preventFocus = false;
5737
5737
  _this.invalidValueString = null;
5738
5738
  _this.preventChange = false;
5739
+ _this.isIconClick = false;
5739
5740
  _this.dateRangeOptions = options;
5740
5741
  return _this;
5741
5742
  }
@@ -6593,6 +6594,9 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
6593
6594
  }
6594
6595
  };
6595
6596
  DateRangePicker.prototype.inputBlurHandler = function (e) {
6597
+ if (this.isIconClick) {
6598
+ e.stopImmediatePropagation();
6599
+ }
6596
6600
  this.updateFloatLabelOverflowWidth();
6597
6601
  if (!this.enabled) {
6598
6602
  return;
@@ -8522,6 +8526,9 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
8522
8526
  });
8523
8527
  }
8524
8528
  }
8529
+ if (this.isRangeIconClicked && this.openOnFocus) {
8530
+ this.isRangeIconClicked = false;
8531
+ }
8525
8532
  };
8526
8533
  DateRangePicker.prototype.onMouseClick = function (event, item) {
8527
8534
  if (event.type === 'touchstart') {
@@ -8914,7 +8921,9 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
8914
8921
  }
8915
8922
  else {
8916
8923
  this.preventBlur = true;
8924
+ this.isIconClick = true;
8917
8925
  this.leftCalendar.children[1].firstElementChild.focus();
8926
+ this.isIconClick = false;
8918
8927
  }
8919
8928
  }
8920
8929
  };