From de9f6d7a75196b2755a13096d9bb781c2b69c077 Mon Sep 17 00:00:00 2001 From: mikekotikov Date: Fri, 17 Jan 2025 11:31:03 +0300 Subject: [PATCH] FIO-9592: Add emitting form displaying --- src/Form.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Form.js b/src/Form.js index 4a2d88c9b3..e9b23d762e 100644 --- a/src/Form.js +++ b/src/Form.js @@ -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() {