Skip to content

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

:art: 移除搜索条件后菜单不消失

Vanessae1afb0d231ce
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 89e554180e..c16b1ed77c 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -707,6 +707,8 @@ const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element:
menuElement.addEventListener("click", (event) => {
if (hasClosestByMatchTag(event.target as HTMLElement, "svg")) {
fetchPost("/api/storage/removeCriterion", {name: item.name.trim()});
+ event.preventDefault();
+ event.stopPropagation();
menuElement.remove();
return;
}