mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +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 tempTargetElement = targetElement;
|
||||||
let isSameLi = true;
|
let isSameLi = true;
|
||||||
sourceElements.find(item => {
|
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")) {
|
targetElement.getAttribute("data-subtype") !== item.getAttribute("data-subtype")) {
|
||||||
isSameLi = false;
|
isSameLi = false;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue