File tree 1 file changed +13
-9
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -83,15 +83,19 @@ export class IgxPivotGridNavigationService extends IgxGridNavigationService {
83
83
}
84
84
85
85
verticalContainer = this . grid . verticalRowDimScrollContainers . toArray ( ) [ newActiveNode . column ] ;
86
- if ( key . includes ( 'up' ) && this . activeNode . row > 0 ) {
87
- newActiveNode . row = ctrl ? 0 : this . activeNode . row - 1 ;
88
- } else if ( key . includes ( 'up' ) ) {
89
- newActiveNode . row = 0 ;
90
- newActiveNode . column = newActiveNode . layout . colStart - 1 ;
91
- newActiveNode . layout = null ;
92
- this . isRowDimensionHeaderActive = true ;
93
- this . isRowHeaderActive = false ;
94
- this . grid . theadRow . nativeElement . focus ( ) ;
86
+ if ( key . includes ( 'up' ) ) {
87
+ if ( ctrl ) {
88
+ newActiveNode . row = 0 ;
89
+ } else if ( this . activeNode . row > 0 ) {
90
+ newActiveNode . row = this . activeNode . row - 1 ;
91
+ } else {
92
+ newActiveNode . row = - 1 ;
93
+ newActiveNode . column = newActiveNode . layout ? newActiveNode . layout . colStart - 1 : 0 ;
94
+ newActiveNode . layout = null ;
95
+ this . isRowDimensionHeaderActive = true ;
96
+ this . isRowHeaderActive = false ;
97
+ this . grid . theadRow . nativeElement . focus ( ) ;
98
+ }
95
99
}
96
100
97
101
if ( key . includes ( 'down' ) && this . activeNode . row < this . findLastDataRowIndex ( ) ) {
You can’t perform that action at this time.
0 commit comments