Skip to content

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

:bug: Fix command panel scrolling with an open menu https://github.com/siyuan-note/siyuan/issues/19481

Daniel7770f35ead11
diff --git a/app/src/boot/globalEvent/command/panel.ts b/app/src/boot/globalEvent/command/panel.ts
index 2985aff6f4..41155bf597 100644
--- a/app/src/boot/globalEvent/command/panel.ts
+++ b/app/src/boot/globalEvent/command/panel.ts
@@ -93,8 +93,8 @@ export const commandPanel = (app: App) => {
/// #endif
};
let dialog: {element: HTMLElement, destroy: () => void};
+ menu.remove();
if (isMobile()) {
- menu.remove();
const element = document.createElement("div");
element.innerHTML = content;
element.className = "fn__flex-column fn__flex-1";