Skip to content

Commit 2040426

Browse files
MKirovaMKirova
authored andcommitted
fix(HierarchicalGrid): Making behavior between base and hierarchical grid consistent - focus always makes first cell active even if the clicked element is not a cell (for example is expander, row selector etc.).
1 parent 9017e18 commit 2040426

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,12 @@ export class IgxHierarchicalGridNavigationService extends IgxGridNavigationServi
102102
}
103103

104104
focusTbody(event) {
105-
if (!this.activeNode) {
105+
if (!this.activeNode || !this.activeNode.row) {
106106
this.activeNode = {
107-
row: null,
108-
column: null
107+
row: 0,
108+
column: 0
109109
};
110+
110111
}
111112

112113
super.focusTbody(event);

0 commit comments

Comments
 (0)