@syncfusion/ej2-dropdowns 35.2.12 → 35.2.15

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 35.2.12
3
+ * version : 35.2.15
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-dropdowns",
3
- "version": "35.2.12",
3
+ "version": "35.2.15",
4
4
  "description": "Essential JS 2 DropDown Components",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -10,9 +10,9 @@
10
10
  "dependencies": {
11
11
  "@syncfusion/ej2-base": "~35.2.12",
12
12
  "@syncfusion/ej2-data": "~35.2.12",
13
- "@syncfusion/ej2-inputs": "~35.2.12",
13
+ "@syncfusion/ej2-inputs": "~35.2.15",
14
14
  "@syncfusion/ej2-lists": "~35.2.12",
15
- "@syncfusion/ej2-navigations": "~35.2.12",
15
+ "@syncfusion/ej2-navigations": "~35.2.15",
16
16
  "@syncfusion/ej2-notifications": "~35.2.12",
17
17
  "@syncfusion/ej2-popups": "~35.2.12"
18
18
  },
@@ -3562,6 +3562,7 @@ var DropDownList = /** @class */ (function (_super) {
3562
3562
  _this.fixedHeaderElement = null;
3563
3563
  }
3564
3564
  if (!eventArgs.cancel) {
3565
+ _this.destroyPopupPositionObserver();
3565
3566
  if (_this.isPopupOpen && _this.allowFiltering && _this.isDeviceFullScreen && Browser.isDevice && Browser.isIos) {
3566
3567
  document.documentElement.scrollTo({
3567
3568
  top: _this.iOSscrollPosition.y,
@@ -3670,7 +3671,14 @@ var DropDownList = /** @class */ (function (_super) {
3670
3671
  if (isNullOrUndefined(observerTarget)) {
3671
3672
  return;
3672
3673
  }
3673
- this.popupPositionObserver = new MutationObserver(function () {
3674
+ this.popupPositionObserver = new MutationObserver(function (mutations) {
3675
+ // Ignore the component's own changes (focus / icon-animation classes) to avoid needless refresh cycles.
3676
+ var external = mutations.some(function (m) {
3677
+ return isNullOrUndefined(_this.inputWrapper) || !_this.inputWrapper.container.contains(m.target);
3678
+ });
3679
+ if (!external) {
3680
+ return;
3681
+ }
3674
3682
  clearTimeout(_this.popupPositionRefreshTimer);
3675
3683
  _this.popupPositionRefreshTimer = setTimeout(function () {
3676
3684
  if (!isNullOrUndefined(_this.popupObj) &&
@@ -3685,6 +3693,13 @@ var DropDownList = /** @class */ (function (_super) {
3685
3693
  attributes: true,
3686
3694
  attributeFilter: ['style', 'class']
3687
3695
  });
3696
+ // Content added or removed before the input (for example a delayed validation message) is a direct child change
3697
+ // of one of its ancestors, so watch only those child lists (not their subtrees) up to, but excluding, the body.
3698
+ var ancestor = observerTarget.parentElement;
3699
+ while (ancestor && ancestor !== document.body && ancestor !== document.documentElement) {
3700
+ this.popupPositionObserver.observe(ancestor, { childList: true });
3701
+ ancestor = ancestor.parentElement;
3702
+ }
3688
3703
  };
3689
3704
  DropDownList.prototype.destroyPopupPositionObserver = function () {
3690
3705
  if (this.popupPositionRefreshTimer) {
@@ -4607,7 +4622,6 @@ var DropDownList = /** @class */ (function (_super) {
4607
4622
  */
4608
4623
  DropDownList.prototype.hidePopup = function (e) {
4609
4624
  /* eslint-enable valid-jsdoc, jsdoc/require-param */
4610
- this.destroyPopupPositionObserver();
4611
4625
  if (this.isEscapeKey && this.getModuleName() === 'dropdownlist') {
4612
4626
  if (!isNullOrUndefined(this.inputElement)) {
4613
4627
  Input.setValue(this.text, this.inputElement, this.floatLabelType, this.showClearButton);