Vanessa 2024-04-28 20:05:12 +08:00
parent 8d23fc969b
commit c79e2f79f5

View file

@ -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) {