From 658c37646d5ca083e1e768dbd8e93eda44180bbd Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 16 Jul 2022 17:35:44 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E9=93=BE=E6=8E=A5=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E4=B8=AD=E7=A7=BB=E9=99=A4=E9=94=9A=E6=96=87=E6=9C=AC=E5=90=8E?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=92=A4=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/menus/protyle.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;