Skip to content

Commit

Permalink
fix(Highcharts plugin): fix tooltip behaviour (#119)
Browse files Browse the repository at this point in the history
fix(Highcharts plugin): fix tooltip behaviour for onChartLoad & onRender callbacks
  • Loading branch information
Marginy605 authored Jan 24, 2023
1 parent b9d7d0c commit 5dffcc3
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ export class HighchartsComponent extends React.PureComponent<Props, State> {
this.props.onRender?.({
renderTime: getChartPerformanceDuration(this.getId()),
});

const widget = this.chartComponent.current ? this.chartComponent.current.chart : null;

if (this.state.callback && widget) {
this.state.callback(widget);
}

return;
}
this.onLoad();
Expand Down

0 comments on commit 5dffcc3

Please sign in to comment.