File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 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 {
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 ( ) ) {
You can’t perform that action at this time.
0 commit comments