Skip to content

Commit

Permalink
Merge remote-tracking branch 'siyuan-fork/dev' into v0.35
Browse files Browse the repository at this point in the history
  • Loading branch information
Soltus committed Jul 25, 2024
2 parents 534d37f + 2a7702a commit 8631e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/protyle/wysiwyg/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran
data: previousElement.outerHTML,
id: previousElement.getAttribute("data-node-id"),
parentID: previousElement.parentElement.getAttribute("data-node-id") || protyle.block.parentID,
previousID: ppElement ? ppElement.getAttribute("data-node-id") : undefined
previousID: (ppElement && (!previousElement.previousElementSibling || !previousElement.previousElementSibling.classList.contains("protyle-action"))) ? ppElement.getAttribute("data-node-id") : undefined
}]);
previousElement.remove();
} else {
Expand Down

0 comments on commit 8631e15

Please sign in to comment.