Vanessa 2022-11-12 00:18:42 +08:00
parent 459f3e2f04
commit 4c402b5609

View file

@ -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;
}