mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-31 04:35:16 +01:00
🎨 https://github.com/siyuan-note/siyuan/issues/15989 拖拽到折叠标题下需展开
This commit is contained in:
parent
700fbc41f5
commit
b3dd8791db
1 changed files with 8 additions and 4 deletions
|
|
@ -148,8 +148,10 @@ const moveToNew = (protyle: IProtyle, sourceElements: Element[], targetElement:
|
|||
action: "delete",
|
||||
id: newSourceId,
|
||||
});
|
||||
doOperations.push(...foldData.doOperations);
|
||||
undoOperations.push(...foldData.undoOperations);
|
||||
if (foldData) {
|
||||
doOperations.push(...foldData.doOperations);
|
||||
undoOperations.push(...foldData.undoOperations);
|
||||
}
|
||||
return {
|
||||
doOperations,
|
||||
undoOperations,
|
||||
|
|
@ -255,8 +257,10 @@ const moveTo = async (protyle: IProtyle, sourceElements: Element[], targetElemen
|
|||
doOperations.push(...responseTransaction.data.doOperations);
|
||||
undoOperations.push(...responseTransaction.data.undoOperations);
|
||||
}
|
||||
doOperations.push(...foldData.doOperations);
|
||||
undoOperations.push(...foldData.undoOperations);
|
||||
if (foldData) {
|
||||
doOperations.push(...foldData.doOperations);
|
||||
undoOperations.push(...foldData.undoOperations);
|
||||
}
|
||||
return {
|
||||
doOperations,
|
||||
undoOperations,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue