An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/9648
Vanessad763a9b14be9
diff --git a/app/src/protyle/render/av/openMenuPanel.ts b/app/src/protyle/render/av/openMenuPanel.tsindex 2aa619074d..93ceeb1403 100644--- a/app/src/protyle/render/av/openMenuPanel.ts+++ b/app/src/protyle/render/av/openMenuPanel.ts@@ -331,11 +331,14 @@ export const openMenuPanel = (options: {while (target && !target.isSameNode(avPanelElement)) {const type = target.dataset.type;if (type === "close") {- if (options.protyle.toolbar.subElement.className.includes("fn__none")) {- avPanelElement.remove();- } else {+ if (!options.protyle.toolbar.subElement.classList.contains("fn__none")) {// 优先关闭资源文件搜索hideElements(["util"], options.protyle);+ } else if (!window.siyuan.menus.menu.element.classList.contains("fn__none")) {+ // 过滤面板先关闭过滤条件+ window.siyuan.menus.menu.remove();+ } else {+ avPanelElement.remove();}window.siyuan.menus.menu.remove();event.preventDefault();