From a8770ce426ff100182cb4bbfa6cc70c39f31d0f0 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 8 Sep 2023 23:00:27 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/9141 --- app/src/protyle/wysiwyg/remove.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts index 0f58cb5d4..b50a531cf 100644 --- a/app/src/protyle/wysiwyg/remove.ts +++ b/app/src/protyle/wysiwyg/remove.ts @@ -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); }