@formio/js 5.1.0-dev.5983.aa8260f → 5.1.0-dev.5984.de9f6d7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formio.form.js +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +1 -1
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/Form.js +3 -1
- package/lib/mjs/Form.js +3 -1
- package/package.json +1 -1
package/lib/cjs/Form.js
CHANGED
@@ -281,7 +281,9 @@ class Form extends Element_1.default {
|
|
281
281
|
this.form.display = display;
|
282
282
|
this.instance.destroy();
|
283
283
|
this.instance = this.create(display);
|
284
|
-
return this.setForm(this.form)
|
284
|
+
return this.setForm(this.form).then(() => {
|
285
|
+
this.instance.emit('setDisplay', this.form.display);
|
286
|
+
});
|
285
287
|
}
|
286
288
|
empty() {
|
287
289
|
if (this.element) {
|
package/lib/mjs/Form.js
CHANGED
@@ -350,7 +350,9 @@ export default class Form extends Element {
|
|
350
350
|
this.form.display = display;
|
351
351
|
this.instance.destroy();
|
352
352
|
this.instance = this.create(display);
|
353
|
-
return this.setForm(this.form)
|
353
|
+
return this.setForm(this.form).then(() => {
|
354
|
+
this.instance.emit('setDisplay', this.form.display);
|
355
|
+
});
|
354
356
|
}
|
355
357
|
empty() {
|
356
358
|
if (this.element) {
|