From 91a6be2506db46ac1064332aa4dafa7586430bf1 Mon Sep 17 00:00:00 2001 From: IBarakov Date: Tue, 20 Oct 2020 11:25:23 +0300 Subject: [PATCH] fix(esf): convert values to string before applying toLowerCase --- .../excel-style/grid.excel-style-filtering.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/igniteui-angular/src/lib/grids/filtering/excel-style/grid.excel-style-filtering.component.ts b/projects/igniteui-angular/src/lib/grids/filtering/excel-style/grid.excel-style-filtering.component.ts index a4301304d78..b86d1651a87 100644 --- a/projects/igniteui-angular/src/lib/grids/filtering/excel-style/grid.excel-style-filtering.component.ts +++ b/projects/igniteui-angular/src/lib/grids/filtering/excel-style/grid.excel-style-filtering.component.ts @@ -501,7 +501,7 @@ export class IgxGridExcelStyleFilteringComponent implements OnDestroy { private generateUniqueValues(columnValues: any[]) { if (this.column.dataType === DataType.String && this.column.filteringIgnoreCase) { - const filteredUniqueValues = columnValues.map(s => s?.toLowerCase()) + const filteredUniqueValues = columnValues.map(s => s?.toString().toLowerCase()) .reduce((map, val, i) => map.get(val) ? map : map.set(val, columnValues[i]), new Map);