We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abfa67f + 3ae8b9e commit 7f85ddbCopy full SHA for 7f85ddb
projects/igniteui-angular/src/lib/grids/grid-navigation.service.ts
@@ -171,7 +171,8 @@ export class IgxGridNavigationService {
171
}
172
173
focusTbody(event) {
174
- if (!this.activeNode || this.activeNode.row < 0 || this.activeNode.row > this.grid.dataView.length - 1) {
+ const gridRows = this.grid.verticalScrollContainer.totalItemCount ?? this.grid.dataView.length;
175
+ if (!this.activeNode || this.activeNode.row < 0 || this.activeNode.row > gridRows - 1) {
176
this.activeNode = { row: 0, column: 0 };
177
this.grid.navigateTo(0, 0, (obj) => {
178
this.grid.clearCellSelection();
0 commit comments