Skip to content

Commit 06a9153

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Adjust check so that data is omitted only for % size in ssr.
1 parent b7b5ac0 commit 06a9153

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3367,8 +3367,9 @@ export abstract class IgxGridBaseDirective implements GridType,
33673367
return this.platform.isBrowser ? this.calcWidth : undefined;
33683368
}
33693369

3370-
protected get renderData(){
3371-
return this.platform.isBrowser ? this.data : undefined;
3370+
protected get renderData() {
3371+
// omit data if not in the browser and size is %
3372+
return !this.platform.isBrowser && this.isPercentHeight ? undefined : this.data;
33723373
}
33733374

33743375
@HostBinding('style.display')

0 commit comments

Comments
 (0)