Skip to content

Commit

Permalink
fix: 打开链接菜单时隐藏 tooltip
Browse files Browse the repository at this point in the history
tooltip 很长的时候,菜单会被挡住
  • Loading branch information
TCOTC committed Feb 1, 2025
1 parent a45ac25 commit e6bf703
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/menus/protyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e6bf703

Please sign in to comment.