mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
5046c8d862
commit
f3a1ce12f8
3 changed files with 10 additions and 0 deletions
|
|
@ -692,6 +692,11 @@ export class Wnd {
|
|||
clearCounter();
|
||||
this.children.find((item, index) => {
|
||||
if (item.id === id) {
|
||||
if (item.model instanceof Custom) {
|
||||
if (item.model.beforeDestroy) {
|
||||
item.model.beforeDestroy();
|
||||
}
|
||||
}
|
||||
if (item.model instanceof Editor && hasSaveScroll) {
|
||||
saveScroll(item.model.editor.protyle);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue