Vanessa 2025-11-11 17:40:33 +08:00
parent dd16153dcd
commit 27030446f6

View file

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