From bd24cc4b3bb043659064a5399440aae06add1df7 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 11 Oct 2024 12:18:23 +0800 Subject: [PATCH] :recycle: https://github.com/siyuan-note/siyuan/pull/12746 --- app/src/dialog/tooltip.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/dialog/tooltip.ts b/app/src/dialog/tooltip.ts index 9da081dcb..2e89e4094 100644 --- a/app/src/dialog/tooltip.ts +++ b/app/src/dialog/tooltip.ts @@ -20,12 +20,7 @@ export const showTooltip = (message: string, target: Element, tooltipClass?: str if (tooltipClass) { messageElement.classList.add("tooltip--" + tooltipClass); } else { - const classesToRemove = Array.from(messageElement.classList).filter(className => - className.startsWith("tooltip--") - ); - classesToRemove.forEach(className => { - messageElement.classList.remove(className); - }); + messageElement.className = "tooltip"; } let left = targetRect.left;