Skip to content

Commit 9091492

Browse files
committed
fix(pivotGrid): row dimension kb nav
1 parent 2ed8b08 commit 9091492

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

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

+13-9
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,19 @@ export class IgxPivotGridNavigationService extends IgxGridNavigationService {
7171
}
7272

7373
verticalContainer = this.grid.verticalRowDimScrollContainers.toArray()[newActiveNode.column];
74-
if (key.includes('up') && this.activeNode.row > 0) {
75-
newActiveNode.row = ctrl ? 0 : this.activeNode.row - 1;
76-
} else if (key.includes('up')) {
77-
newActiveNode.row = 0;
78-
newActiveNode.column = newActiveNode.layout.colStart - 1;
79-
newActiveNode.layout = null;
80-
this.isRowDimensionHeaderActive = true;
81-
this.isRowHeaderActive = false;
82-
this.grid.theadRow.nativeElement.focus();
74+
if (key.includes('up')) {
75+
if (ctrl) {
76+
newActiveNode.row = 0;
77+
} else if (this.activeNode.row > 0) {
78+
newActiveNode.row = this.activeNode.row - 1;
79+
} else {
80+
newActiveNode.row = -1;
81+
newActiveNode.column = newActiveNode.layout ? newActiveNode.layout.colStart - 1 : 0;
82+
newActiveNode.layout = null;
83+
this.isRowDimensionHeaderActive = true;
84+
this.isRowHeaderActive = false;
85+
this.grid.theadRow.nativeElement.focus();
86+
}
8387
}
8488

8589
if (key.includes('down') && this.activeNode.row < this.findLastDataRowIndex()) {

0 commit comments

Comments
 (0)