Skip to content

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

fix: 打开链接菜单时隐藏 tooltip (#13992)

Jeffrey Chenc845e63e8411
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 1b20d88903..ee6a383200 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -60,6 +60,7 @@ import {getFirstBlock} from "../protyle/wysiwyg/getBlock";
import {popSearch} from "../mobile/menu/search";
import {showMessage} from "../dialog/message";
import {img3115} from "../boot/compatibleVersion";
+import {hideTooltip} from "../dialog/tooltip";
const renderAssetList = (element: Element, k: string, position: IPosition, exts: string[] = []) => {
fetchPost("/api/search/searchAsset", {
@@ -1374,6 +1375,7 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText
if (!nodeElement) {
return;
}
+ hideTooltip();
hideElements(["util", "toolbar", "hint"], protyle);
const id = nodeElement.getAttribute("data-node-id");
let html = nodeElement.outerHTML;