diff --git a/app/src/util/highlightById.ts b/app/src/util/highlightById.ts index 270cb87ea..ed3b4a2c9 100644 --- a/app/src/util/highlightById.ts +++ b/app/src/util/highlightById.ts @@ -62,7 +62,9 @@ export const scrollCenter = (protyle: IProtyle, nodeElement?: Element, top = fal } } - if (!nodeElement) { + if (!nodeElement && + // https://github.com/siyuan-note/siyuan/issues/11175 + document.activeElement?.tagName !== "TEXTAREA" && document.activeElement?.tagName !== "INPUT") { nodeElement = hasClosestBlock(getEditorRange(protyle.wysiwyg.element).startContainer) as HTMLElement; } if (!nodeElement) {