@syncfusion/ej2-dropdowns 24.2.5 → 24.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.
@@ -2730,15 +2730,15 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
2730
2730
  DropDownList.prototype.focusOutAction = function (e) {
2731
2731
  this.isInteracted = false;
2732
2732
  this.focusOut(e);
2733
- this.onFocusOut();
2733
+ this.onFocusOut(e);
2734
2734
  };
2735
- DropDownList.prototype.onFocusOut = function () {
2735
+ DropDownList.prototype.onFocusOut = function (e) {
2736
2736
  if (!this.enabled) {
2737
2737
  return;
2738
2738
  }
2739
2739
  if (this.isSelected) {
2740
2740
  this.isSelectCustom = false;
2741
- this.onChangeEvent(null);
2741
+ this.onChangeEvent(e);
2742
2742
  }
2743
2743
  this.floatLabelChange();
2744
2744
  this.dispatchEvent(this.hiddenElement, 'change');
@@ -3451,7 +3451,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
3451
3451
  this.hidePopup(e);
3452
3452
  this.isInteracted = false;
3453
3453
  if (!isActive) {
3454
- this.onFocusOut();
3454
+ this.onFocusOut(e);
3455
3455
  this.inputWrapper.container.classList.remove(dropDownListClasses.inputFocus);
3456
3456
  }
3457
3457
  }
@@ -17550,7 +17550,6 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
17550
17550
  if (tListBox.mainList.childElementCount !== tListBox.jsonData.length) {
17551
17551
  tListBox.mainList = tListBox.ulElement;
17552
17552
  }
17553
- fListBox.updateMainList();
17554
17553
  var tJsonData = [].slice.call(tListBox.jsonData);
17555
17554
  tSortData = [].slice.call(tListBox.sortedData);
17556
17555
  this.selectNextList(elems, dataLiIdx, dataIdx, fListBox);
@@ -19354,6 +19353,20 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
19354
19353
  range.collapse(false);
19355
19354
  rect = range.getBoundingClientRect().top === 0 ? range.startContainer.getClientRects()[0] : range.getBoundingClientRect();
19356
19355
  }
19356
+ var rectTop = rect.top;
19357
+ var rectLeft = rect.left;
19358
+ var iframes = document.querySelectorAll('iframe');
19359
+ if (iframes.length > 0) {
19360
+ for (var i = 0; i < iframes.length; i++) {
19361
+ // eslint-disable-next-line security/detect-object-injection
19362
+ var iframe = iframes[i];
19363
+ if (iframe.contentDocument.contains(element)) {
19364
+ var iframeRect = iframe.getBoundingClientRect();
19365
+ rectTop += iframeRect.top;
19366
+ rectLeft += iframeRect.left;
19367
+ }
19368
+ }
19369
+ }
19357
19370
  var doc = document.documentElement;
19358
19371
  var windowLeft = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
19359
19372
  var windowTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
@@ -19375,23 +19388,23 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
19375
19388
  }
19376
19389
  if (!this.isContentEditable(this.inputElement)) {
19377
19390
  coordinates = {
19378
- top: rect.top + windowTop + span.offsetTop + parseInt(computed.borderTopWidth, 10) +
19391
+ top: rectTop + windowTop + span.offsetTop + parseInt(computed.borderTopWidth, 10) +
19379
19392
  parseInt(computed.fontSize, 10) + 3 - element.scrollTop - (this.isCollided ? 10 : 0),
19380
- left: rect.left + windowLeft + span.offsetLeft + parseInt(computed.borderLeftWidth, 10)
19393
+ left: rectLeft + windowLeft + span.offsetLeft + parseInt(computed.borderLeftWidth, 10)
19381
19394
  };
19382
19395
  document.body.removeChild(div);
19383
19396
  }
19384
19397
  else {
19385
19398
  if (this.collision && this.collision.length > 0 && this.collision.indexOf('right') > -1 && this.collision.indexOf('bottom') === -1) {
19386
19399
  coordinates = {
19387
- top: rect.top + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10),
19388
- left: rect.left + windowLeft + width
19400
+ top: rectTop + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10),
19401
+ left: rectLeft + windowLeft + width
19389
19402
  };
19390
19403
  }
19391
19404
  else {
19392
19405
  coordinates = {
19393
- top: rect.top + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10) - (this.isCollided ? 10 : 0),
19394
- left: rect.left + windowLeft + width
19406
+ top: rectTop + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10) - (this.isCollided ? 10 : 0),
19407
+ left: rectLeft + windowLeft + width
19395
19408
  };
19396
19409
  }
19397
19410
  }