From f660b2ddfa98f93f778bbbbe5abc3bfaa5a932b6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 2 Jun 2025 22:26:32 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14956 --- app/src/protyle/toolbar/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 4250fdf2e..d85b283c2 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -1087,7 +1087,8 @@ export class Toolbar { } }); this.subElementCloseCB = () => { - if (!renderElement.parentElement || protyle.disabled || oldTextValue === textElement.value) { + if (!renderElement.parentElement || protyle.disabled || + (oldTextValue === textElement.value && textElement.value)) { return; } let inlineLastNode: Element;