diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index 255921a31..1a7193ed6 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;