From 4ce1c9910466cd2ff586f0dc81858c3dd8491cb8 Mon Sep 17 00:00:00 2001 From: Andrei Grigore Date: Fri, 7 Jan 2022 10:39:48 +0200 Subject: [PATCH] Better update trigger on plot --- src/Widget/ChartEditor.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Widget/ChartEditor.jsx b/src/Widget/ChartEditor.jsx index 10d120f5..712c9e77 100644 --- a/src/Widget/ChartEditor.jsx +++ b/src/Widget/ChartEditor.jsx @@ -151,7 +151,7 @@ class Edit extends Component { LoadableCustomEditor.preload(); } - componentDidUpdate() { + handleUpdatePlot() { const el = document.getElementById('gd'); if ( @@ -241,6 +241,7 @@ class Edit extends Component { frames, }; this.props.onChangeValue(newVal); + this.handleUpdatePlot(); }} chartHelp={chartHelp} showFieldTooltips