mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-02 23:08:49 +01:00
This commit is contained in:
parent
4feb8a67c1
commit
011fcbf1c2
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue