fix: std might not be ready when onLoad invoked (#6075)
This commit is contained in:
@@ -88,6 +88,7 @@ const PageDetailEditorMain = memo(function PageDetailEditorMain({
|
|||||||
if (onLoad) {
|
if (onLoad) {
|
||||||
// Invoke onLoad once the editor has been mounted to the DOM.
|
// Invoke onLoad once the editor has been mounted to the DOM.
|
||||||
editor.updateComplete
|
editor.updateComplete
|
||||||
|
.then(() => editor.host.updateComplete)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
disposableGroup.add(onLoad(page, editor));
|
disposableGroup.add(onLoad(page, editor));
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user