mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
This commit is contained in:
parent
6eb52835da
commit
cebeba34ca
1 changed files with 3 additions and 0 deletions
|
|
@ -298,6 +298,9 @@ export class Outline extends Model {
|
||||||
} else {
|
} else {
|
||||||
previousID = selectItem.previousElementSibling?.getAttribute("data-node-id");
|
previousID = selectItem.previousElementSibling?.getAttribute("data-node-id");
|
||||||
}
|
}
|
||||||
|
if (previousID === item.dataset.nodeId || parentID === item.dataset.nodeId) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
selectItem.before(item);
|
selectItem.before(item);
|
||||||
} else if (selectItem.classList.contains("dragover__bottom")) {
|
} else if (selectItem.classList.contains("dragover__bottom")) {
|
||||||
previousID = selectItem.getAttribute("data-node-id");
|
previousID = selectItem.getAttribute("data-node-id");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue