mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-15 11:38:06 +01:00
🐛 聚焦返回时 protyle.contentElement.scrollTop 不等于 0,会导致滚动加载,从而导致 showAll 为 false
This commit is contained in:
parent
0ff3c06e39
commit
4d0290783b
1 changed files with 1 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ export const onGet = (data: IWebSocketData, protyle: IProtyle, action: string[]
|
|||
protyle.block.id = data.data.id;
|
||||
protyle.scroll.lastScrollTop = 0;
|
||||
protyle.contentElement.scrollTop = 0;
|
||||
preventScroll(protyle); // 聚焦返回时 protyle.contentElement.scrollTop 不等于 0,会导致滚动加载,从而导致 showAll 为 false
|
||||
protyle.wysiwyg.element.setAttribute("data-doc-type", data.data.type);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue