mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40: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;
|
||||
}
|
||||
if (fileTreeIds.indexOf("-") > -1 && !fileTreeIds.split(",").includes(protyle.block.rootID)) {
|
||||
if (fileTreeIds.indexOf("-") > -1) {
|
||||
if (fileTreeIds.split(",").includes(protyle.block.rootID)) {
|
||||
dragoverElement = undefined;
|
||||
} else {
|
||||
dragoverElement = targetElement;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue