@syncfusion/ej2-treegrid 33.1.46 → 33.1.47

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.
@@ -11760,24 +11760,26 @@ var Filter = /** @__PURE__ @class */ (function () {
11760
11760
  if (this.flatFilteredData.length > 0 && this.isHierarchyFilter) {
11761
11761
  this.updateFilterLevel();
11762
11762
  }
11763
- var _loop_1 = function (i) {
11764
- var record = this_1.filteredResult[parseInt(i.toString(), 10)];
11765
- if (!isNullOrUndefined(record.parentItem)) {
11766
- var parentUID_1 = record.parentItem.uniqueID;
11767
- var parentPresent = this_1.filteredResult.some(function (r) {
11768
- return !isNullOrUndefined(r.uniqueID) && r.uniqueID === parentUID_1;
11769
- });
11770
- if (parentPresent) {
11771
- record.isCollapsedChild = !getExpandStatus(this_1.parent, record, this_1.parent.parentData);
11772
- }
11773
- else {
11774
- record.isCollapsedChild = false;
11763
+ if (hierarchyMode === 'None') {
11764
+ var _loop_1 = function (i) {
11765
+ var record = this_1.filteredResult[parseInt(i.toString(), 10)];
11766
+ if (!isNullOrUndefined(record.parentItem)) {
11767
+ var parentUID_1 = record.parentItem.uniqueID;
11768
+ var parentPresent = this_1.filteredResult.some(function (r) {
11769
+ return !isNullOrUndefined(r.uniqueID) && r.uniqueID === parentUID_1;
11770
+ });
11771
+ if (parentPresent) {
11772
+ setValue('isCollapsedChild', !getExpandStatus(this_1.parent, record, this_1.parent.parentData), record);
11773
+ }
11774
+ else {
11775
+ setValue('isCollapsedChild', false, record);
11776
+ }
11775
11777
  }
11778
+ };
11779
+ var this_1 = this;
11780
+ for (var i = 0; i < this.filteredResult.length; i++) {
11781
+ _loop_1(i);
11776
11782
  }
11777
- };
11778
- var this_1 = this;
11779
- for (var i = 0; i < this.filteredResult.length; i++) {
11780
- _loop_1(i);
11781
11783
  }
11782
11784
  this.parent.notify('updateAction', { result: this.filteredResult });
11783
11785
  };
@@ -11903,6 +11905,9 @@ var Filter = /** @__PURE__ @class */ (function () {
11903
11905
  currentRecord.hasFilteredChildRecords = null;
11904
11906
  currentRecord.filterLevel = null;
11905
11907
  }
11908
+ if (!isNullOrUndefined(currentRecord.isCollapsedChild)) {
11909
+ currentRecord.isCollapsedChild = null;
11910
+ }
11906
11911
  }
11907
11912
  this.filteredResult = [];
11908
11913
  this.parent.notify('updateResults', { result: flatData, count: flatData.length });