Skip to content

Commit 1a33daa

Browse files
authored
Merge pull request #349 from eliseumds/hotfix/react_16_default_props
Fix defaultProps with React 16
2 parents eea4448 + 2b4293d commit 1a33daa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/chartsFactory.jsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ module.exports = function (chartType, Highcharts){
1515
callback: PropTypes.func,
1616
domProps: PropTypes.object
1717
},
18-
getDefaultProps: function() {
19-
return {
20-
callback: () =>{},
21-
domProps: {}
22-
};
18+
defaultProps: {
19+
callback: () =>{},
20+
domProps: {}
2321
},
2422
setChartRef: function(chartRef) {
2523
this.chartRef = chartRef;

0 commit comments

Comments
 (0)