From 011fcbf1c28a0ef1b3a24e2b76e42325914f1d41 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 15 Jun 2024 22:54:33 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/11701 --- app/src/boot/globalEvent/command/panel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/boot/globalEvent/command/panel.ts b/app/src/boot/globalEvent/command/panel.ts index 61e8b93b8..16e76d0ac 100644 --- a/app/src/boot/globalEvent/command/panel.ts +++ b/app/src/boot/globalEvent/command/panel.ts @@ -427,7 +427,7 @@ export const execByCommand = async (options: { case "move": if (!isFileFocus) { const nodeElement = hasClosestBlock(range.startContainer); - if (protyle.title?.editElement.contains(range.startContainer) || !nodeElement) { + if (protyle.title?.editElement.contains(range.startContainer) || !nodeElement || window.siyuan.menus.menu.element.getAttribute("data-name") === "titleMenu") { movePathTo((toPath, toNotebook) => { moveToPath([protyle.path], toNotebook[0], toPath[0]); }, [protyle.path], range);