GroupPrototype in Custom dynamic control has a value
begandroide opened this issue · comments
I'm submitting a
[x] Bug / Regression
[ ] Feature Request / Proposal
I'm using
NG Dynamic Forms Version: `12.0.0`
[x] Basic UI
[ ] Bootstrap UI
[ ] Foundation UI
[ ] Ionic UI
[ ] Kendo UI
[ ] Material
[ ] NG Bootstrap
[ ] Prime NG
Description
Hi! We create a custom dynamic form control to group controls in layout, when we use in form arrays happens that the groupPrototype has values. How i can prevent that?
this happens when in groupPrototype exist's groups, as an example:
[
{
"id": "myFormArray",
"name": "formArray",
"type": "ARRAY",
"groupPrototype": [
{
"type": "SELECT",
"id": "selectExample",
"name": "select",
"options": [
{
"value": "option1",
"label": "option 1"
},
{
"value": "option2",
"label": "option 2"
}
],
"filter": true,
"layout": {
"grid": {
"host": "col-12 col-sm-12 col-md-12 col-lg-3 col-xl-3"
}
}
},
{
"type": "GROUP",
"id": "test1",
"group": [
{
"type": "INPUT",
"id": "test2"
}
]
}
],
"layout": {
"grid": {
"host": "col-12",
"control": "solid-item",
"container": "center start"
},
"element": {
"group": "col-12"
}
},
"initialCount": 1
}
]