From 76873abedc37b1142e1450a4f4eaeb07ef6967d2 Mon Sep 17 00:00:00 2001
From: Jan Wennrich <jan@pcsg.de>
Date: Wed, 15 Nov 2017 12:34:50 +0100
Subject: [PATCH] feat: FormList now parses entries on create
 (quiqqer/package-bricks#73)

---
 qui/controls/elements/FormList.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/qui/controls/elements/FormList.js b/qui/controls/elements/FormList.js
index 1d4e121a..7809075f 100644
--- a/qui/controls/elements/FormList.js
+++ b/qui/controls/elements/FormList.js
@@ -184,7 +184,10 @@ define('qui/controls/elements/FormList', [
                 change: this.$refreshData
             });
 
-            this.$refreshData();
+            QUI.parse(Child).then(function() {
+                this.$refreshData();
+                this.fireEvent('parsed', [this, Child]);
+            }.bind(this));
 
             return Child;
         }
-- 
GitLab