Vanessa 2024-09-22 00:01:06 +08:00
parent 783c8a092b
commit fa0dfedba7

View file

@ -571,6 +571,10 @@ export class Files extends Model {
}
});
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);
fromPaths.push(dataPath);
}