@elite.framework/ng.core 1.0.44 → 1.0.46
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.
|
@@ -4767,10 +4767,9 @@ class RepeatTypeComponent extends FieldArrayType {
|
|
|
4767
4767
|
ngOnInit() {
|
|
4768
4768
|
// Subscribe to each FormArray changes
|
|
4769
4769
|
// if (this.formControl instanceof FormArray) {
|
|
4770
|
-
this.formControl.valueChanges.subscribe(() => {
|
|
4770
|
+
this.field.formControl.valueChanges.subscribe(() => {
|
|
4771
4771
|
// Force Angular to detect changes
|
|
4772
|
-
|
|
4773
|
-
this.field.fieldGroup = this.field.fieldGroup;
|
|
4772
|
+
this.field.fieldGroup = [...this.field.fieldGroup ?? []];
|
|
4774
4773
|
this.cdr.detectChanges();
|
|
4775
4774
|
});
|
|
4776
4775
|
// }
|