@@ -35,7 +35,6 @@ const PlotlyRenderers = createPlotlyRenderers(Plot);
35
35
export default class PivotTable extends Component {
36
36
constructor ( props ) {
37
37
super ( props ) ;
38
- this . state = props ;
39
38
this . handleChange = this . handleChange . bind ( this ) ;
40
39
}
41
40
@@ -46,7 +45,9 @@ export default class PivotTable extends Component {
46
45
rows,
47
46
rowOrder,
48
47
aggregatorName,
49
- rendererName
48
+ rendererName,
49
+ valueFilter,
50
+ vals,
50
51
} = state ;
51
52
52
53
if ( typeof this . props . setProps === 'function' ) {
@@ -56,7 +57,9 @@ export default class PivotTable extends Component {
56
57
rows,
57
58
rowOrder,
58
59
aggregatorName,
59
- rendererName
60
+ rendererName,
61
+ valueFilter,
62
+ vals,
60
63
} ) ;
61
64
}
62
65
@@ -70,7 +73,9 @@ export default class PivotTable extends Component {
70
73
hiddenFromAggregators,
71
74
hiddenFromDragDrop,
72
75
menuLimit,
73
- unusedOrientationCutoff
76
+ unusedOrientationCutoff,
77
+ valueFilter,
78
+ vals,
74
79
} = this . props ;
75
80
76
81
return (
@@ -83,7 +88,9 @@ export default class PivotTable extends Component {
83
88
hiddenFromDragDrop = { hiddenFromDragDrop }
84
89
menuLimit = { menuLimit }
85
90
unusedOrientationCutoff = { unusedOrientationCutoff }
86
- { ...this . state }
91
+ valueFilter = { valueFilter }
92
+ vals = { vals }
93
+ { ...this . props }
87
94
/>
88
95
) ;
89
96
}
@@ -94,7 +101,9 @@ PivotTable.defaultProps = {
94
101
unusedOrientationCutoff : 85 ,
95
102
hiddenAttributes : [ ] ,
96
103
hiddenFromAggregators : [ ] ,
97
- hiddenFromDragDrop : [ ]
104
+ hiddenFromDragDrop : [ ] ,
105
+ valueFilter : [ ] ,
106
+ vals : [ ] ,
98
107
} ;
99
108
100
109
PivotTable . propTypes = {
@@ -181,7 +190,7 @@ PivotTable.propTypes = {
181
190
vals : PropTypes . array ,
182
191
183
192
/**
184
- * Value filter for each attibute name.
193
+ * Value filter for each attribute name.
185
194
*/
186
195
valueFilter : PropTypes . object ,
187
196
0 commit comments