Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: https://github.com/siyuan-note/siyuan/pull/12746

Vanessabd24cc4b3bb0
diff --git a/app/src/dialog/tooltip.ts b/app/src/dialog/tooltip.ts
index 9da081dcbd..2e89e40945 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;