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 @@ -71,15 +71,19 @@ export class IgxPivotGridNavigationService extends IgxGridNavigationService {
71
71
}
72
72
73
73
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
+ }
83
87
}
84
88
85
89
if ( key . includes ( 'down' ) && this . activeNode . row < this . findLastDataRowIndex ( ) ) {
You can’t perform that action at this time.
0 commit comments