This commit is contained in:
Vanessa 2022-06-27 22:32:15 +08:00
parent 59bff8376a
commit dc0a6fa57c
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ export class Editor extends Model {
} }
}, },
}); });
// 需在 after 回调之前,否则不会聚焦 https://github.com/siyuan-note/siyuan/issues/5303
this.editor.protyle.model = this; this.editor.protyle.model = this;
} }
} }

View File

@ -185,6 +185,7 @@ class Protyle {
}); });
} }
}); });
// 需等渲染完后再回调,用于定位搜索字段 https://github.com/siyuan-note/siyuan/issues/3171
if (mergedOptions.after) { if (mergedOptions.after) {
mergedOptions.after(this); mergedOptions.after(this);
} }