@esfaenza/forms-and-validations 11.2.151 → 11.2.153
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/bundles/esfaenza-forms-and-validations.umd.js +2 -1
- package/bundles/esfaenza-forms-and-validations.umd.js.map +1 -1
- package/esm2015/lib/forms/base-form-control.js +3 -2
- package/fesm2015/esfaenza-forms-and-validations.js +2 -1
- package/fesm2015/esfaenza-forms-and-validations.js.map +1 -1
- package/package.json +1 -1
|
@@ -2111,8 +2111,9 @@
|
|
|
2111
2111
|
v._createValidator();
|
|
2112
2112
|
});
|
|
2113
2113
|
}
|
|
2114
|
+
// Escludo tutti i validatori che in realtà sono componenti
|
|
2114
2115
|
if (this._validators)
|
|
2115
|
-
this.ngControl.control.setValidators(this._validators);
|
|
2116
|
+
this.ngControl.control.setValidators(this._validators.filter(function (v) { return !v.ngOnInit; }));
|
|
2116
2117
|
this.ngControl.control.updateValueAndValidity();
|
|
2117
2118
|
}
|
|
2118
2119
|
}
|