File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
projects/igniteui-angular/src/lib/grids
src/app/pivot-grid-hierarchy Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ export function notifyChanges(repaint = false) {
74
74
75
75
76
76
const originalSetter = propDesc ? propDesc . set : null ;
77
-
78
77
propDesc . get = propDesc . get || ( function ( this ) {
79
78
return this [ privateKey ] ;
80
79
} ) ;
@@ -83,15 +82,17 @@ export function notifyChanges(repaint = false) {
83
82
if ( originalSetter ) {
84
83
originalSetter . call ( this , newValue ) ;
85
84
if ( this . grid ) {
86
- this . grid . notifyChanges ( repaint ) ;
85
+ const shouldRepaint = this . grid . isPivot ? false : repaint ;
86
+ this . grid . notifyChanges ( shouldRepaint ) ;
87
87
}
88
88
} else {
89
89
if ( newValue === this [ key ] ) {
90
90
return ;
91
91
}
92
92
this [ privateKey ] = newValue ;
93
93
if ( this . grid ) {
94
- this . grid . notifyChanges ( repaint ) ;
94
+ const shouldRepaint = this . grid . isPivot ? false : repaint ;
95
+ this . grid . notifyChanges ( shouldRepaint ) ;
95
96
}
96
97
}
97
98
} ;
Original file line number Diff line number Diff line change 6
6
placeholder ="Dimension(s) " searchPlaceholder ="Search... ">
7
7
</ igx-combo >
8
8
</ div >
9
- < igx-pivot-grid #grid1 [data] ="origData " [pivotConfiguration] ="pivotConfigHierarchy " (dimensionsChange) ='dimensionChange($event) ' [defaultExpandState] ='true '>
9
+ < igx-pivot-grid [displayDensity] =' "compact" ' #grid1 [data] ="origData " [pivotConfiguration] ="pivotConfigHierarchy " (dimensionsChange) ='dimensionChange($event) ' [defaultExpandState] ='true '>
10
10
</ igx-pivot-grid >
11
11
You can’t perform that action at this time.
0 commit comments