Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/13311

Vanessa277e75f5d196
diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts
index acb68d51f1..eaa5945f2f 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();
}