We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8379cf3 commit d5007b0Copy full SHA for d5007b0
src/lib/js/editor.js
@@ -73,13 +73,11 @@ export class FormeoEditor {
73
74
promises.push(i18n.init({ ...this.opts.i18n, locale: window.sessionStorage?.getItem(SESSION_LOCALE_KEY) }))
75
76
- if (this.opts.allowEdit) {
77
- promises.push(this.init())
78
- }
79
-
80
const resolvedPromises = await Promise.all(promises)
81
82
- this.opts.onLoad?.(this)
+ if (this.opts.allowEdit) {
+ this.init()
+ }
83
84
return resolvedPromises
85
}
@@ -105,6 +103,7 @@ export class FormeoEditor {
105
103
106
104
107
this.render()
+ this.opts.onLoad?.(this)
108
})
109
110
0 commit comments