mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
459f3e2f04
commit
4c402b5609
1 changed files with 6 additions and 2 deletions
|
|
@ -747,8 +747,12 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (fileTreeIds.indexOf("-") > -1 && !fileTreeIds.split(",").includes(protyle.block.rootID)) {
|
if (fileTreeIds.indexOf("-") > -1) {
|
||||||
dragoverElement = targetElement;
|
if (fileTreeIds.split(",").includes(protyle.block.rootID)) {
|
||||||
|
dragoverElement = undefined;
|
||||||
|
} else {
|
||||||
|
dragoverElement = targetElement;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue