Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/16315

Vanessa27030446f6d9
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts
index 255921a31e..1a7193ed65 100644
--- a/app/src/protyle/util/editorCommonEvent.ts
+++ b/app/src/protyle/util/editorCommonEvent.ts
@@ -48,7 +48,7 @@ const moveTo = async (protyle: IProtyle, sourceElements: Element[], targetElemen
let tempTargetElement = targetElement;
let isSameLi = true;
sourceElements.find(item => {
- if (!item.classList.contains("li") ||
+ if (!item.classList.contains("li") || !targetElement.classList.contains("li") ||
targetElement.getAttribute("data-subtype") !== item.getAttribute("data-subtype")) {
isSameLi = false;
return true;