Skip to content

Commit b00dca1

Browse files
committed
fix(grid): add null check for activeNode
1 parent f645b2f commit b00dca1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

projects/igniteui-angular/grids/core/src/headers/grid-header-group.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class IgxGridHeaderGroupComponent implements DoCheck {
151151
* @hidden
152152
*/
153153
public get ariaHidden(): boolean {
154-
return this.grid.hasColumnGroups && (this.column.hidden || this.grid.navigation.activeNode.row !== -1);
154+
return this.grid.hasColumnGroups && (this.column.hidden || this.grid.navigation.activeNode?.row !== -1);
155155
}
156156

157157
/**

projects/igniteui-angular/grids/core/src/headers/grid-header-row.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class IgxGridHeaderRowComponent implements DoCheck {
123123
* @internal
124124
*/
125125
public get isLeafHeaderAriaHidden(): boolean {
126-
return this.grid.navigation.activeNode.row === -1;
126+
return this.grid.navigation.activeNode?.row === -1;
127127
}
128128

129129
/** The virtualized part of the header row containing the unpinned header groups. */

0 commit comments

Comments
 (0)