File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { HEADER_KEYS } from '../../core/utils';
55import { IgxPivotRowDimensionMrlRowComponent } from './pivot-row-dimension-mrl-row.component' ;
66import { IMultiRowLayoutNode } from '../public_api' ;
77import { SortingDirection } from '../../data-operations/sorting-strategy' ;
8+ import { PivotUtil } from './pivot-util' ;
89
910@Injectable ( )
1011export class IgxPivotGridNavigationService extends IgxGridNavigationService {
@@ -130,7 +131,8 @@ export class IgxPivotGridNavigationService extends IgxGridNavigationService {
130131
131132 if ( ctrl ) {
132133 const dimIndex = this . activeNode . column ;
133- const dim = this . grid . rowDimensions [ dimIndex ] ;
134+ const flatRowDImensions = PivotUtil . flatten ( this . grid . rowDimensions )
135+ const dim = flatRowDImensions [ dimIndex ] ;
134136 if ( dimIndex === 0 && this . activeNode . row === - 1 ) {
135137 if ( key . includes ( 'down' ) || key . includes ( 'up' ) ) {
136138 let newSortDirection = SortingDirection . None ;
You can’t perform that action at this time.
0 commit comments