Forráskód Böngészése

:art: fix https://github.com/siyuan-note/siyuan/issues/11701

Vanessa 1 éve
szülő
commit
011fcbf1c2
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app/src/boot/globalEvent/command/panel.ts

+ 1 - 1
app/src/boot/globalEvent/command/panel.ts

@@ -427,7 +427,7 @@ export const execByCommand = async (options: {
         case "move":
         case "move":
             if (!isFileFocus) {
             if (!isFileFocus) {
                 const nodeElement = hasClosestBlock(range.startContainer);
                 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) => {
                     movePathTo((toPath, toNotebook) => {
                         moveToPath([protyle.path], toNotebook[0], toPath[0]);
                         moveToPath([protyle.path], toNotebook[0], toPath[0]);
                     }, [protyle.path], range);
                     }, [protyle.path], range);