diff --git a/src/chart.js b/src/chart.js index 4b32600..a46f076 100644 --- a/src/chart.js +++ b/src/chart.js @@ -131,11 +131,14 @@ export default class Chart extends React.Component { width != nextProps.width || !isEqual(options, nextProps.options) || !isEqual(plugins, nextProps.plugins)) { + var chart = this.state.chart if (nextProps.redraw) { chart.destroy() this.initializeChart(nextProps) - } else { + return true + } + else { var dataKey = nextProps.dataKey || dataKeys[chart.config.type] updatePoints(nextProps, chart, dataKey) if (chart.scales) { @@ -145,6 +148,7 @@ export default class Chart extends React.Component { return false } } + return false } handleOnClick = (event) => {