mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
783c8a092b
commit
fa0dfedba7
1 changed files with 4 additions and 0 deletions
|
|
@ -571,6 +571,10 @@ export class Files extends Model {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (!isChild) {
|
if (!isChild) {
|
||||||
|
// 禁止父节点移动到子节点 https://github.com/siyuan-note/siyuan/issues/12539
|
||||||
|
if (newElement.getAttribute("data-path").startsWith(item.dataset.path.replace(".sy", ""))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
selectFileElements.push(item);
|
selectFileElements.push(item);
|
||||||
fromPaths.push(dataPath);
|
fromPaths.push(dataPath);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue