Skip to content

Commit

Permalink
FIO-9592: Add emitting form displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekotikov committed Jan 17, 2025
1 parent fcd067b commit de9f6d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,9 @@ export default class Form extends Element {
this.form.display = display;
this.instance.destroy();
this.instance = this.create(display);
return this.setForm(this.form);
return this.setForm(this.form).then(() => {
this.instance.emit('setDisplay', this.form.display)
});
}

empty() {
Expand Down

0 comments on commit de9f6d7

Please sign in to comment.