mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
dd16153dcd
commit
27030446f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue