onshore-forms 0.0.52 → 0.0.54
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.
- package/esm2020/lib/components/form-item-container/form-item-container.component.mjs +3 -3
- package/esm2020/lib/onshore-forms.service.mjs +2 -1
- package/fesm2015/onshore-forms.mjs +4 -2
- package/fesm2015/onshore-forms.mjs.map +1 -1
- package/fesm2020/onshore-forms.mjs +3 -2
- package/fesm2020/onshore-forms.mjs.map +1 -1
- package/lib/onshore-forms.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -187,6 +187,7 @@ class OnshoreFormsService {
|
|
|
187
187
|
formGroup.setParent(formArray);
|
|
188
188
|
formArray.push(formGroup);
|
|
189
189
|
this.subscribeNestedFormGroup(formGroup);
|
|
190
|
+
return formGroup;
|
|
190
191
|
}
|
|
191
192
|
removeFormArrayItem(form, index) {
|
|
192
193
|
form.removeAt(index);
|
|
@@ -416,8 +417,8 @@ class OnshoreFormItemContainer {
|
|
|
416
417
|
this.onWindowResize();
|
|
417
418
|
}
|
|
418
419
|
ngOnChanges(changes) {
|
|
419
|
-
const previousValue = changes['formTemplate']
|
|
420
|
-
const currentValue = changes['formTemplate']
|
|
420
|
+
const previousValue = changes['formTemplate']?.previousValue;
|
|
421
|
+
const currentValue = changes['formTemplate']?.currentValue;
|
|
421
422
|
if (currentValue) {
|
|
422
423
|
if (previousValue?.enabled !== currentValue?.enabled) {
|
|
423
424
|
this.enabled(currentValue?.enabled);
|