This commit is contained in:
Vanessa 2024-01-01 23:08:28 +08:00
parent e6a8abf004
commit 6f0c68f506
11 changed files with 29 additions and 31 deletions

View file

@ -391,7 +391,7 @@ const focusElementById = (protyle: IProtyle, action: string[], scrollAttr?: IScr
}
/// #endif
}
const hasScrollTop = scrollAttr && typeof scrollAttr.scrollTop === "number"
const hasScrollTop = scrollAttr && typeof scrollAttr.scrollTop === "number";
if (hasScrollTop) {
protyle.contentElement.scrollTop = scrollAttr.scrollTop;
}