From a3a41b2555ea537a947bddffc9091528bc14ed65 Mon Sep 17 00:00:00 2001 From: Andcool-Systems Date: Sun, 29 Dec 2024 00:26:48 +0300 Subject: [PATCH] fixed tooltip showing after page changes --- src/app/modules/utils/workshopCacheListener.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/modules/utils/workshopCacheListener.tsx b/src/app/modules/utils/workshopCacheListener.tsx index 053eb45..7e986fa 100644 --- a/src/app/modules/utils/workshopCacheListener.tsx +++ b/src/app/modules/utils/workshopCacheListener.tsx @@ -10,6 +10,8 @@ const WorkshopCacheListener = (): null => { if (!pathname.startsWith('/workshop')) { sessionStorage.removeItem('workshopState'); } + const tooltip = document.getElementById('global_tooltip'); + tooltip && document.body.removeChild(tooltip); }, [pathname]); return null;