From 9091492b247a6b9a4b93403a3c69052433561320 Mon Sep 17 00:00:00 2001 From: IMinchev64 Date: Wed, 19 Jun 2024 11:37:49 +0300 Subject: [PATCH] fix(pivotGrid): row dimension kb nav --- .../pivot-grid-navigation.service.ts | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid-navigation.service.ts b/projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid-navigation.service.ts index c34d1e2d342..0699ae27295 100644 --- a/projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid-navigation.service.ts +++ b/projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid-navigation.service.ts @@ -71,15 +71,19 @@ export class IgxPivotGridNavigationService extends IgxGridNavigationService { } verticalContainer = this.grid.verticalRowDimScrollContainers.toArray()[newActiveNode.column]; - if (key.includes('up') && this.activeNode.row > 0) { - newActiveNode.row = ctrl ? 0 : this.activeNode.row - 1; - } else if (key.includes('up')) { - newActiveNode.row = 0; - newActiveNode.column = newActiveNode.layout.colStart - 1; - newActiveNode.layout = null; - this.isRowDimensionHeaderActive = true; - this.isRowHeaderActive = false; - this.grid.theadRow.nativeElement.focus(); + if (key.includes('up')) { + if (ctrl) { + newActiveNode.row = 0; + } else if (this.activeNode.row > 0) { + newActiveNode.row = this.activeNode.row - 1; + } else { + newActiveNode.row = -1; + newActiveNode.column = newActiveNode.layout ? newActiveNode.layout.colStart - 1 : 0; + newActiveNode.layout = null; + this.isRowDimensionHeaderActive = true; + this.isRowHeaderActive = false; + this.grid.theadRow.nativeElement.focus(); + } } if (key.includes('down') && this.activeNode.row < this.findLastDataRowIndex()) {