From 8f2aafb0fdf3099d095dd25d232601415df21339 Mon Sep 17 00:00:00 2001 From: potaracom Date: Sun, 8 Oct 2023 09:38:16 +0900 Subject: [PATCH] fix: recreate tooltip div --- core/tooltip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tooltip.ts b/core/tooltip.ts index 51c38e653..0478b91fd 100644 --- a/core/tooltip.ts +++ b/core/tooltip.ts @@ -184,7 +184,7 @@ function getTargetObject( * Create the tooltip div and inject it onto the page. */ export function createDom() { - if (containerDiv) { + if (document.querySelector('.blocklyTooltipDiv')) { return; // Already created. } // Create an HTML container for popup overlays (e.g. editor widgets).