This commit is contained in:
parent
8d23fc969b
commit
c79e2f79f5
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue