mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 22:08:48 +01:00
This commit is contained in:
parent
b5c45cbb45
commit
a8770ce426
1 changed files with 2 additions and 1 deletions
|
|
@ -411,7 +411,8 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran
|
|||
} else {
|
||||
transaction(protyle, doOperations, undoOperations);
|
||||
}
|
||||
focusBlock(protyle.wysiwyg.element.querySelector(`[data-node-id="${previousId}"]`), undefined, false);
|
||||
// toStart 参数不能为 false, 否则 https://github.com/siyuan-note/siyuan/issues/9141
|
||||
focusBlock(protyle.wysiwyg.element.querySelector(`[data-node-id="${previousId}"]`), undefined, true);
|
||||
} else {
|
||||
focusBlock(previousLastElement, undefined, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue