@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/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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.1.0-dev.5983.aa8260f",
3
+ "version": "5.1.0-dev.5984.de9f6d7",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {