diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index 49aacee88..493c294a9 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -627,8 +627,7 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText inputElement.value = linkElement.textContent.replace(Constants.ZWSP, ""); inputElement.addEventListener("change", () => { if (!inputElement.value) { - protyle.toolbar.setInlineMark(protyle, "link", "remove"); - window.siyuan.menus.menu.remove(); + linkElement.remove(); } updateTransaction(protyle, id, nodeElement.outerHTML, html); html = nodeElement.outerHTML;