From 9bd1faecd6a69847150273e1550665eb12e2079c Mon Sep 17 00:00:00 2001 From: sophiamersmann Date: Fri, 8 Nov 2024 11:15:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(tooltip)=20fix=20mobx=20issue?= =?UTF-8?q?=20for=20tooltips=20in=20the=20admin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/@ourworldindata/grapher/src/core/Grapher.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/@ourworldindata/grapher/src/core/Grapher.tsx b/packages/@ourworldindata/grapher/src/core/Grapher.tsx index 622c6479d20..77b446373b9 100644 --- a/packages/@ourworldindata/grapher/src/core/Grapher.tsx +++ b/packages/@ourworldindata/grapher/src/core/Grapher.tsx @@ -870,7 +870,9 @@ export class Grapher @observable.ref isExportingToSvgOrPng = false @observable.ref isSocialMediaExport = false - tooltip?: TooltipManager["tooltip"] = observable.box(undefined) + tooltip?: TooltipManager["tooltip"] = observable.box(undefined, { + deep: false, + }) @observable.ref isPlaying = false @observable.ref isTimelineAnimationActive = false // true if the timeline animation is either playing or paused but not finished