From 15100b62e7df77c73c392b2f6deb55cda8a41673 Mon Sep 17 00:00:00 2001 From: Martin Dragnev Date: Wed, 18 Jun 2025 16:42:14 +0300 Subject: [PATCH] fix(esf): use requestAnimationFrame only when in browser environment --- .../filtering/excel-style/excel-style-search.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-search.component.ts b/projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-search.component.ts index 25199db8605..d366da1a43c 100644 --- a/projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-search.component.ts +++ b/projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-search.component.ts @@ -254,7 +254,10 @@ export class IgxExcelStyleSearchComponent implements AfterViewInit, OnDestroy { } public ngAfterViewInit() { - requestAnimationFrame(this.refreshSize); + if (this.platform.isBrowser) { + // SSR workaround + requestAnimationFrame(this.refreshSize); + } } public ngOnDestroy(): void {