Skip to content

Commit 5d98bfb

Browse files
committed
fix(test): Fixing the broken fitler test #5627
1 parent 75be450 commit 5d98bfb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import {
1010
ElementRef,
1111
HostBinding,
1212
HostListener,
13-
ChangeDetectionStrategy
13+
ChangeDetectionStrategy,
14+
ViewRef
1415
} from '@angular/core';
1516
import { DataType } from '../../data-operations/data-util';
1617
import { IgxColumnComponent } from '../column.component';
@@ -653,7 +654,8 @@ export class IgxGridFilteringRowComponent implements AfterViewInit {
653654
this.showArrows = this.chipsAreaWidth >= containerWidth && this.isColumnFiltered;
654655

655656
// TODO: revise the cdr.detectChanges() usage here
656-
this.cdr.detectChanges();
657+
if (!(this.cdr as ViewRef).destroyed) {
658+
this.cdr.detectChanges(); }
657659
}
658660
});
659661
}

0 commit comments

Comments
 (0)