@syncfusion/ej2-dropdowns 20.1.56 → 20.1.57

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.
@@ -638,10 +638,10 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
638
638
  _this.isDataFetched = true;
639
639
  }
640
640
  ulElement = _this.renderItems(listItems, fields);
641
- _this.onActionComplete(ulElement, listItems, e);
642
641
  if (_this.groupTemplate) {
643
642
  _this.renderGroupTemplate(ulElement);
644
643
  }
644
+ _this.onActionComplete(ulElement, listItems, e);
645
645
  _this.isRequested = false;
646
646
  _this.bindChildItems(listItems, ulElement, fields, e);
647
647
  }
@@ -3006,7 +3006,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
3006
3006
  };
3007
3007
  DropDownList.prototype.updateActionCompleteDataValues = function (ulElement, list) {
3008
3008
  this.actionCompleteData = { ulElement: ulElement.cloneNode(true), list: list, isUpdated: true };
3009
- if (isNullOrUndefined(this.actionData.ulElement) && isNullOrUndefined(this.actionData.list)) {
3009
+ if (this.actionData.list !== this.actionCompleteData.list && this.actionCompleteData.ulElement && this.actionCompleteData.list) {
3010
3010
  this.actionData = this.actionCompleteData;
3011
3011
  }
3012
3012
  };
@@ -4689,13 +4689,14 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
4689
4689
  matchedChildren.push(filteredChild);
4690
4690
  }
4691
4691
  }
4692
+ var filteredItems = Object.assign({}, node);
4692
4693
  if (matchedChildren.length !== 0) {
4693
- node[this.fields.child] = matchedChildren;
4694
- return node;
4694
+ filteredItems[this.fields.child] = matchedChildren;
4695
+ return filteredItems;
4695
4696
  }
4696
4697
  else {
4697
- node[this.fields.child] = null;
4698
- return (this.isMatchedNode(value, node)) ? node : null;
4698
+ filteredItems[this.fields.child] = null;
4699
+ return (this.isMatchedNode(value, filteredItems)) ? filteredItems : null;
4699
4700
  }
4700
4701
  }
4701
4702
  };
@@ -6037,11 +6038,12 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
6037
6038
  }
6038
6039
  return 2;
6039
6040
  }
6040
- for (var i = 0, len = ds.length; i < len; i++) {
6041
- if ((typeof field.child === 'string') && !isNullOrUndefined(getValue(field.child, ds[i]))) {
6041
+ this.fields.dataSource = isNullOrUndefined(this.fields.dataSource) ? [] : this.fields.dataSource;
6042
+ for (var i = 0, len = this.fields.dataSource.length; i < len; i++) {
6043
+ if ((typeof field.child === 'string') && !isNullOrUndefined(getValue(field.child, this.fields.dataSource[i]))) {
6042
6044
  return 2;
6043
6045
  }
6044
- if (!isNullOrUndefined(getValue(field.parentValue, ds[i])) || !isNullOrUndefined(getValue(field.hasChildren, ds[i]))) {
6046
+ if (!isNullOrUndefined(getValue(field.parentValue, this.fields.dataSource[i])) || !isNullOrUndefined(getValue(field.hasChildren, this.fields.dataSource[i]))) {
6045
6047
  return 1;
6046
6048
  }
6047
6049
  }
@@ -15517,6 +15519,13 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
15517
15519
  this.list.parentElement.insertBefore(this.element, this.list);
15518
15520
  }
15519
15521
  _super.prototype.destroy.call(this);
15522
+ this.enableRtlElements = [];
15523
+ this.liCollections = null;
15524
+ this.list = null;
15525
+ this.ulElement = null;
15526
+ this.mainList = null;
15527
+ this.spinner = null;
15528
+ this.rippleFun = null;
15520
15529
  if (this.itemTemplate) {
15521
15530
  this.clearTemplate();
15522
15531
  }