diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts index 0c9ba96bb..5e2b02e7f 100644 --- a/app/src/protyle/wysiwyg/input.ts +++ b/app/src/protyle/wysiwyg/input.ts @@ -123,8 +123,9 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range: let focusHR = false; if (["---", "___", "***"].includes(editElement.textContent) && type !== "NodeCodeBlock") { html = `
`; - const nextBlockElement = getNextBlock(editElement); - if (nextBlockElement) { + // https://github.com/siyuan-note/siyuan/issues/12593 + const nextBlockElement = blockElement.nextElementSibling; + if (nextBlockElement && nextBlockElement.getAttribute("data-node-id")) { if (!isNotEditBlock(nextBlockElement)) { focusBlock(nextBlockElement); } else {