@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.
@@ -614,10 +614,10 @@ let DropDownBase = class DropDownBase extends Component {
614
614
  this.isDataFetched = true;
615
615
  }
616
616
  ulElement = this.renderItems(listItems, fields);
617
- this.onActionComplete(ulElement, listItems, e);
618
617
  if (this.groupTemplate) {
619
618
  this.renderGroupTemplate(ulElement);
620
619
  }
620
+ this.onActionComplete(ulElement, listItems, e);
621
621
  this.isRequested = false;
622
622
  this.bindChildItems(listItems, ulElement, fields, e);
623
623
  }
@@ -2956,7 +2956,7 @@ let DropDownList = class DropDownList extends DropDownBase {
2956
2956
  }
2957
2957
  updateActionCompleteDataValues(ulElement, list) {
2958
2958
  this.actionCompleteData = { ulElement: ulElement.cloneNode(true), list: list, isUpdated: true };
2959
- if (isNullOrUndefined(this.actionData.ulElement) && isNullOrUndefined(this.actionData.list)) {
2959
+ if (this.actionData.list !== this.actionCompleteData.list && this.actionCompleteData.ulElement && this.actionCompleteData.list) {
2960
2960
  this.actionData = this.actionCompleteData;
2961
2961
  }
2962
2962
  }
@@ -4597,13 +4597,14 @@ let DropDownTree = class DropDownTree extends Component {
4597
4597
  matchedChildren.push(filteredChild);
4598
4598
  }
4599
4599
  }
4600
+ let filteredItems = Object.assign({}, node);
4600
4601
  if (matchedChildren.length !== 0) {
4601
- node[this.fields.child] = matchedChildren;
4602
- return node;
4602
+ filteredItems[this.fields.child] = matchedChildren;
4603
+ return filteredItems;
4603
4604
  }
4604
4605
  else {
4605
- node[this.fields.child] = null;
4606
- return (this.isMatchedNode(value, node)) ? node : null;
4606
+ filteredItems[this.fields.child] = null;
4607
+ return (this.isMatchedNode(value, filteredItems)) ? filteredItems : null;
4607
4608
  }
4608
4609
  }
4609
4610
  }
@@ -5937,11 +5938,12 @@ let DropDownTree = class DropDownTree extends Component {
5937
5938
  }
5938
5939
  return 2;
5939
5940
  }
5940
- for (let i = 0, len = ds.length; i < len; i++) {
5941
- if ((typeof field.child === 'string') && !isNullOrUndefined(getValue(field.child, ds[i]))) {
5941
+ this.fields.dataSource = isNullOrUndefined(this.fields.dataSource) ? [] : this.fields.dataSource;
5942
+ for (let i = 0, len = this.fields.dataSource.length; i < len; i++) {
5943
+ if ((typeof field.child === 'string') && !isNullOrUndefined(getValue(field.child, this.fields.dataSource[i]))) {
5942
5944
  return 2;
5943
5945
  }
5944
- if (!isNullOrUndefined(getValue(field.parentValue, ds[i])) || !isNullOrUndefined(getValue(field.hasChildren, ds[i]))) {
5946
+ if (!isNullOrUndefined(getValue(field.parentValue, this.fields.dataSource[i])) || !isNullOrUndefined(getValue(field.hasChildren, this.fields.dataSource[i]))) {
5945
5947
  return 1;
5946
5948
  }
5947
5949
  }
@@ -15282,6 +15284,13 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
15282
15284
  this.list.parentElement.insertBefore(this.element, this.list);
15283
15285
  }
15284
15286
  super.destroy();
15287
+ this.enableRtlElements = [];
15288
+ this.liCollections = null;
15289
+ this.list = null;
15290
+ this.ulElement = null;
15291
+ this.mainList = null;
15292
+ this.spinner = null;
15293
+ this.rippleFun = null;
15285
15294
  if (this.itemTemplate) {
15286
15295
  this.clearTemplate();
15287
15296
  }