Skip to content

Commit ab76218

Browse files
authored
fix(ESF): Return a numeric value for containerSize (#10397)
(cherry picked from commit 5cdedd3)
1 parent d608f70 commit ab76218

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-search.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ export class IgxExcelStyleSearchComponent implements AfterViewInit, OnDestroy {
247247
if (this.list && this.esf.listData.length) {
248248
return this.list.element.nativeElement.offsetHeight;
249249
}
250+
251+
// GE Nov 1st, 2021 #10355 Return a numeric value, so the chunk size is calculated properly.
252+
// If we skip this branch, on applying the filter the _calculateChunkSize() method off the ForOfDirective receives
253+
// an igxForContainerSize = undefined, thus assigns the chunkSize to the igxForOf.length which leads to performance issues.
254+
return 0;
250255
}
251256

252257
/**

0 commit comments

Comments
 (0)