From 7a7b2dae08b4eb024a3e7f3b705db97ef4a536b2 Mon Sep 17 00:00:00 2001 From: Taya Leutina Date: Tue, 12 Mar 2024 20:57:42 +0300 Subject: [PATCH] fix: fix chart config with params methods for Highcharts with split pane (#447) --- .../renderer/components/withSplitPane/withSplitPane.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.tsx b/src/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.tsx index f86ee066..534b5d0e 100644 --- a/src/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.tsx +++ b/src/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.tsx @@ -114,6 +114,7 @@ export const withSplitPane = ( type WrapperComponentPropsWithForwardedRef = WrapperComponentProps & { current: any; forwardedRef: React.Ref; + callback?: Highcharts.ChartCallbackFunction; }; class WithSplitPane extends React.PureComponent< @@ -200,6 +201,7 @@ export const withSplitPane = ( private afterCreateCallback = (chart: Highcharts.Chart) => { chart.tooltip.splitTooltip = true; chart.tooltip.getTooltipContainer = this.getTooltipContainer; + this.props.callback?.(chart); }; private setInitialPaneSize = (callback: () => void) => {