@wavemaker/app-ng-runtime 11.5.2-next.141137 → 11.5.2-next.141139
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 +4 -2
- app-ng-runtime/components/data/form/esm2022/form.component.mjs +5 -3
- app-ng-runtime/components/data/form/fesm2022/index.mjs +4 -2
- 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/components/navigation/menu/bundles/index.umd.js +1 -1
- app-ng-runtime/components/navigation/menu/esm2022/menu-dropdown/menu-dropdown.component.mjs +2 -2
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
|
@@ -816,7 +816,7 @@ class FormComponent extends StylableComponent {
|
|
|
816
816
|
fd[fieldName] = fieldValue;
|
|
817
817
|
_.set(formData, field.form.formGroupName, fd);
|
|
818
818
|
}
|
|
819
|
-
else if (field.form.isParentList) {
|
|
819
|
+
else if (this.parentForm && this.parentForm.ngform && field.form.isParentList) { // Fix for [WMS-25806]: use formArrayIndex only if form has a parent form
|
|
820
820
|
// setting formdata based on formArrayIndex
|
|
821
821
|
const fd = _.get(formData, field.form.parentList.name, []);
|
|
822
822
|
fd[field.form.formArrayIndex] = fd[field.form.formArrayIndex] || {};
|
|
@@ -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)) {
|