Skip to content

Commit 02b8735

Browse files
authored
fix(esf): use requestAnimationFrame only when in browser environment (#15955)
1 parent 625769a commit 02b8735

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ export class IgxExcelStyleSearchComponent implements AfterViewInit, OnDestroy {
254254
}
255255

256256
public ngAfterViewInit() {
257-
requestAnimationFrame(this.refreshSize);
257+
if (this.platform.isBrowser) {
258+
// SSR workaround
259+
requestAnimationFrame(this.refreshSize);
260+
}
258261
}
259262

260263
public ngOnDestroy(): void {

0 commit comments

Comments
 (0)