@esfaenza/forms-and-validations 11.2.120 → 11.2.121
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 +5 -3
- package/bundles/esfaenza-forms-and-validations.umd.js.map +1 -1
- package/esm2015/lib/forms/form-file/form-file.component.js +6 -4
- package/fesm2015/esfaenza-forms-and-validations.js +5 -3
- package/fesm2015/esfaenza-forms-and-validations.js.map +1 -1
- package/package.json +1 -1
|
@@ -2438,9 +2438,11 @@
|
|
|
2438
2438
|
return _this;
|
|
2439
2439
|
}
|
|
2440
2440
|
FormFileComponent.prototype.ngOnInit = function () {
|
|
2441
|
-
this._validators
|
|
2442
|
-
|
|
2443
|
-
|
|
2441
|
+
if (this._validators) {
|
|
2442
|
+
this._validators.push(this);
|
|
2443
|
+
this.ngControl.control.setValidators(this._validators);
|
|
2444
|
+
this.ngControl.control.updateValueAndValidity();
|
|
2445
|
+
}
|
|
2444
2446
|
};
|
|
2445
2447
|
FormFileComponent.prototype.validate = function (control) {
|
|
2446
2448
|
if (this.Required && !this.Model.filename)
|