Skip to content

Commit a2ccd6f

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Do not focus first cell if a different header cell is already active.
1 parent 9d2a829 commit a2ccd6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class IgxGridNavigationService {
183183
}
184184

185185
focusFirstCell(header = true) {
186-
if (this.grid.dataView.length && this.activeNode &&
186+
if ((header || this.grid.dataView.length) && this.activeNode &&
187187
(this.activeNode.row === -1 || this.activeNode.row === this.grid.dataView.length)) { return; }
188188
this.activeNode = { row: header ? -1 : this.grid.dataView.length, column: 0,
189189
level: this.grid.hasColumnLayouts ? 1 : 0, mchCache: { level: 0, visibleIndex: 0} };

0 commit comments

Comments
 (0)