This commit is contained in:
Vanessa 2023-09-08 23:00:27 +08:00
parent b5c45cbb45
commit a8770ce426

View file

@ -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);
}