From 277e75f5d196e1daadba28eb1f01500f967ac0bf Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 4 Dec 2024 22:39:57 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13311 --- app/src/protyle/header/Background.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts index acb68d51f..eaa5945f2 100644 --- a/app/src/protyle/header/Background.ts +++ b/app/src/protyle/header/Background.ts @@ -541,7 +541,8 @@ export class Background { } else { this.addTags(inputElement.value, protyle); } - window.siyuan.menus.menu.remove(); + inputElement.value = ""; + inputElement.dispatchEvent(new CustomEvent("input")) } else if (event.key === "Escape") { window.siyuan.menus.menu.remove(); }