Skip to content

Commit 0a41383

Browse files
sstoyanovIGbkulov
authored andcommitted
fix(igx-grid): Select sort button only if default template is used, #4359 (#4372)
1 parent 2ab6044 commit 0a41383

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,11 @@ export class IgxGridExcelStyleFilteringComponent implements OnDestroy, AfterView
180180
this.customDialog.expressionsList = this.expressionsList;
181181
this.populateColumnData();
182182

183-
const se = this.grid.sortingExpressions.find(expr => expr.fieldName === this.column.field);
184-
if (se) {
185-
this.excelStyleSorting.selectButton(se.dir);
183+
if (this.excelStyleSorting) {
184+
const se = this.grid.sortingExpressions.find(expr => expr.fieldName === this.column.field);
185+
if (se) {
186+
this.excelStyleSorting.selectButton(se.dir);
187+
}
186188
}
187189

188190
requestAnimationFrame(() => {

0 commit comments

Comments
 (0)