@ngx-formly/core 6.3.10 → 6.3.11
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.
|
@@ -1114,16 +1114,15 @@ class FormlyForm {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
});
|
|
1116
1116
|
}
|
|
1117
|
-
let fieldChangesDetection = [
|
|
1117
|
+
let fieldChangesDetection = [
|
|
1118
|
+
observeDeep(this.field.options, ['formState'], () => this.field.options.detectChanges(this.field)),
|
|
1119
|
+
];
|
|
1118
1120
|
const valueChanges = this.field.options.fieldChanges
|
|
1119
1121
|
.pipe(filter(({ field, type }) => hasKey(field) && type === 'valueChanges'), switchMap(() => (isNoopNgZone(this.ngZone) ? of(null) : this.ngZone.onStable.asObservable().pipe(take(1)))))
|
|
1120
1122
|
.subscribe(() => this.ngZone.runGuarded(() => {
|
|
1121
1123
|
// runGuarded is used to keep in sync the expression changes
|
|
1122
1124
|
// https://github.com/ngx-formly/ngx-formly/issues/2095
|
|
1123
1125
|
this.checkExpressionChange();
|
|
1124
|
-
if (this.field.options) {
|
|
1125
|
-
fieldChangesDetection.push(observeDeep(this.field.options, ['formState'], () => this.field.options.detectChanges(this.field)));
|
|
1126
|
-
}
|
|
1127
1126
|
this.modelChange.emit((this._modelChangeValue = clone(this.model)));
|
|
1128
1127
|
}));
|
|
1129
1128
|
return () => {
|