Skip to content

Commit 1c88e30

Browse files
committed
fix(IgxGrid): fix expand/collapse rows with KB #6747
1 parent d85243f commit 1c88e30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/igniteui-angular/src/lib/grids/grid-navigation.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ export class IgxGridNavigationService {
256256
if (!this.isToggleKey(key) || !row) { return; }
257257

258258
if (!row.expanded && ROW_EXPAND_KEYS.has(key)) {
259-
!row.rowID ? row.toggle() :
259+
row.rowID === undefined ? row.toggle() :
260260
this.grid.gridAPI.set_row_expansion_state(row.rowID, true, event);
261261
} else if (row.expanded && ROW_COLLAPSE_KEYS.has(key)) {
262-
!row.rowID ? row.toggle() :
262+
row.rowID === undefined ? row.toggle() :
263263
this.grid.gridAPI.set_row_expansion_state(row.rowID, false, event);
264264
}
265265
this.grid.notifyChanges();

0 commit comments

Comments
 (0)