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(); }