File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ export class PivotUtil {
8484 prevDims : IPivotDimension [ ] ,
8585 currDimLvl : number ) {
8686 const data = records ;
87+ const dimMaxLvl = PivotUtil . getDimensionDepth ( dim ) ;
8788 for ( let i = 0 ; i < data . length ; i ++ ) {
8889 const rec = data [ i ] ;
8990 const field = dim . memberName ;
@@ -97,7 +98,7 @@ export class PivotUtil {
9798 expansionStates . get ( expansionRowKey ) ;
9899 if ( rec [ field + '_' + pivotKeys . records ] &&
99100 rec [ field + '_' + pivotKeys . records ] . length > 0 &&
100- isExpanded && lvl > 0 ) {
101+ ( ( isExpanded && lvl > 0 ) || ( dimMaxLvl == currDimLvl ) ) ) {
101102 let dimData = rec [ field + '_' + pivotKeys . records ] ;
102103 if ( dim . childLevel ) {
103104 if ( PivotUtil . getDimensionDepth ( dim ) > 1 ) {
You can’t perform that action at this time.
0 commit comments