@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.
@@ -11340,18 +11340,20 @@ class Filter {
11340
11340
  if (this.flatFilteredData.length > 0 && this.isHierarchyFilter) {
11341
11341
  this.updateFilterLevel();
11342
11342
  }
11343
- for (let i = 0; i < this.filteredResult.length; i++) {
11344
- const record = this.filteredResult[parseInt(i.toString(), 10)];
11345
- if (!isNullOrUndefined(record.parentItem)) {
11346
- const parentUID = record.parentItem.uniqueID;
11347
- const parentPresent = this.filteredResult.some((r) => {
11348
- return !isNullOrUndefined(r.uniqueID) && r.uniqueID === parentUID;
11349
- });
11350
- if (parentPresent) {
11351
- record.isCollapsedChild = !getExpandStatus(this.parent, record, this.parent.parentData);
11352
- }
11353
- else {
11354
- record.isCollapsedChild = false;
11343
+ if (hierarchyMode === 'None') {
11344
+ for (let i = 0; i < this.filteredResult.length; i++) {
11345
+ const record = this.filteredResult[parseInt(i.toString(), 10)];
11346
+ if (!isNullOrUndefined(record.parentItem)) {
11347
+ const parentUID = record.parentItem.uniqueID;
11348
+ const parentPresent = this.filteredResult.some((r) => {
11349
+ return !isNullOrUndefined(r.uniqueID) && r.uniqueID === parentUID;
11350
+ });
11351
+ if (parentPresent) {
11352
+ setValue('isCollapsedChild', !getExpandStatus(this.parent, record, this.parent.parentData), record);
11353
+ }
11354
+ else {
11355
+ setValue('isCollapsedChild', false, record);
11356
+ }
11355
11357
  }
11356
11358
  }
11357
11359
  }
@@ -11479,6 +11481,9 @@ class Filter {
11479
11481
  currentRecord.hasFilteredChildRecords = null;
11480
11482
  currentRecord.filterLevel = null;
11481
11483
  }
11484
+ if (!isNullOrUndefined(currentRecord.isCollapsedChild)) {
11485
+ currentRecord.isCollapsedChild = null;
11486
+ }
11482
11487
  }
11483
11488
  this.filteredResult = [];
11484
11489
  this.parent.notify('updateResults', { result: flatData, count: flatData.length });