@syncfusion/ej2-treegrid 20.3.56 → 20.3.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.
@@ -1123,9 +1123,15 @@ class Selection {
1123
1123
  this.filteredList = this.searchingRecords;
1124
1124
  }
1125
1125
  }
1126
- let data = (!isNullOrUndefined(this.parent.filterModule) &&
1127
- (this.filteredList.length > 0)) ? this.filteredList :
1128
- this.parent.flatData;
1126
+ let data;
1127
+ if (this.parent.filterModule.filteredResult.length === 0 && this.parent.getCurrentViewRecords().length === 0 &&
1128
+ this.parent.filterSettings.columns.length > 0) {
1129
+ data = this.filteredList;
1130
+ }
1131
+ else {
1132
+ data = (!isNullOrUndefined(this.parent.filterModule) &&
1133
+ (this.filteredList.length > 0)) ? this.filteredList : this.parent.flatData;
1134
+ }
1129
1135
  data = isRemoteData(this.parent) ? this.parent.getCurrentViewRecords() : data;
1130
1136
  if (!isNullOrUndefined(checkAll)) {
1131
1137
  for (let i = 0; i < data.length; i++) {
@@ -5889,6 +5895,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
5889
5895
  this.localExpand(action, row, record);
5890
5896
  }
5891
5897
  }
5898
+ if (!isNullOrUndefined(targetEle) && targetEle.closest('.e-treerowcell').classList.contains('e-cellselectionbackground')) {
5899
+ targetEle.closest('.e-treerowcell').classList.remove('e-cellselectionbackground');
5900
+ targetEle.closest('.e-treerowcell').removeAttribute('aria-selected');
5901
+ }
5892
5902
  if (this.isPixelHeight() && !row.cells[0].classList.contains('e-lastrowcell')) {
5893
5903
  let totalRows = this.getRows();
5894
5904
  const rows = this.getContentTable().rows;