@wavemaker/app-ng-runtime 11.7.2-next.26369 → 11.7.2-next.26371
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.
- app-ng-runtime/components/data/form/bundles/index.umd.js +3 -1
- app-ng-runtime/components/data/form/esm2022/form.component.mjs +4 -2
- app-ng-runtime/components/data/form/fesm2022/index.mjs +3 -1
- app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/esm2022/list.component.mjs +1 -1
- app-ng-runtime/components/data/list/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/list.component.d.ts +1 -1
- app-ng-runtime/package.json +1 -1
|
@@ -1306,7 +1306,9 @@ class FormComponent extends StylableComponent {
|
|
|
1306
1306
|
if (controls) {
|
|
1307
1307
|
// when current form is inside the list (i.e. incase of formArray).
|
|
1308
1308
|
if (_.get(this.parentList, 'name') && controls.hasOwnProperty(this.parentList.name)) {
|
|
1309
|
-
|
|
1309
|
+
//get the index of current form in the list and remove the FormControl from FormArray
|
|
1310
|
+
const index = _.findIndex(this.parentList.getWidgets(this.name), { widgetId: this.widgetId });
|
|
1311
|
+
this.parentForm.ngform.controls[this.parentList.name].removeAt(index);
|
|
1310
1312
|
}
|
|
1311
1313
|
// when we have formGroupName set i.e. multiple formInstance with counter appended to formName
|
|
1312
1314
|
if (this.formGroupName && controls.hasOwnProperty(this.formGroupName)) {
|