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';
5
5
import { IgxPivotRowDimensionMrlRowComponent } from './pivot-row-dimension-mrl-row.component' ;
6
6
import { IMultiRowLayoutNode } from '../public_api' ;
7
7
import { SortingDirection } from '../../data-operations/sorting-strategy' ;
8
+ import { PivotUtil } from './pivot-util' ;
8
9
9
10
@Injectable ( )
10
11
export class IgxPivotGridNavigationService extends IgxGridNavigationService {
@@ -130,7 +131,8 @@ export class IgxPivotGridNavigationService extends IgxGridNavigationService {
130
131
131
132
if ( ctrl ) {
132
133
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 ] ;
134
136
if ( dimIndex === 0 && this . activeNode . row === - 1 ) {
135
137
if ( key . includes ( 'down' ) || key . includes ( 'up' ) ) {
136
138
let newSortDirection = SortingDirection . None ;
You can’t perform that action at this time.
0 commit comments