Skip to content

Commit 7506558

Browse files
MKirovaMKirova
authored andcommitted
fix(igxHierarchicalGrid): Scroll to fist cell in parent and clear selection on focus.
1 parent 03d324a commit 7506558

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,15 @@ export class IgxHierarchicalGridNavigationService extends IgxGridNavigationServi
108108
column: 0
109109
};
110110

111-
}
111+
this.grid.navigateTo(0, 0, (obj) => {
112+
this.grid.clearCellSelection();
113+
obj.target.activate(event);
114+
});
112115

113-
super.focusTbody(event);
116+
} else {
117+
super.focusTbody(event);
118+
}
119+
114120
}
115121

116122
protected nextSiblingIndex(isNext) {

0 commit comments

Comments
 (0)