Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/6153

Vanessafe827792fddc
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts
index bb540976cd..4199fbd425 100644
--- a/app/src/protyle/util/editorCommonEvent.ts
+++ b/app/src/protyle/util/editorCommonEvent.ts
@@ -308,8 +308,7 @@ const dragSame = (protyle: IProtyle, sourceElements: Element[], targetElement: E
topSourceElement = getTopAloneElement(item);
if (topSourceElement.isSameNode(item)) {
topSourceElement = undefined;
- }
- if (topSourceElement.contains(item) && topSourceElement.contains(targetElement)) {
+ } else if (topSourceElement.contains(item) && topSourceElement.contains(targetElement)) {
// * * 1 列表项拖拽到父级列表项下 https://ld246.com/article/1665448570858
topSourceElement = targetElement;
}
@@ -384,8 +383,7 @@ const dragSame = (protyle: IProtyle, sourceElements: Element[], targetElement: E
topSourceElement = getTopAloneElement(item);
if (topSourceElement.isSameNode(item)) {
topSourceElement = undefined;
- }
- if (topSourceElement.contains(item) && topSourceElement.contains(targetElement)) {
+ } else if (topSourceElement.contains(item) && topSourceElement.contains(targetElement)) {
// * * 1 列表项拖拽到父级列表项上 https://ld246.com/article/1665448570858
topSourceElement = targetElement;
}