@esfaenza/forms-and-validations 11.2.74 → 11.2.77
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 +3 -1
- package/bundles/esfaenza-forms-and-validations.umd.js.map +1 -1
- package/esm2015/lib/forms/base-form-control.js +2 -2
- package/esm2015/lib/forms/form-file/form-file.component.js +3 -1
- package/fesm2015/esfaenza-forms-and-validations.js +3 -1
- package/fesm2015/esfaenza-forms-and-validations.js.map +1 -1
- package/package.json +1 -1
|
@@ -2030,7 +2030,7 @@
|
|
|
2030
2030
|
* un altro con lo stesso "name" ma magari resettato, Angular lo re-idraterebbe con i valori precedenti nonostante il modello fosse vuoto
|
|
2031
2031
|
*/
|
|
2032
2032
|
BaseFormControl.prototype.ngOnDestroy = function () {
|
|
2033
|
-
if (this.
|
|
2033
|
+
if (this.Form && this.validationControl && !!this.Form.getControl(this.validationControl))
|
|
2034
2034
|
this.Form.removeControl(this.validationControl);
|
|
2035
2035
|
};
|
|
2036
2036
|
/** Elabora i validatori iniettati e capisce se il valore è obbligatorio o meno */
|
|
@@ -2265,6 +2265,8 @@
|
|
|
2265
2265
|
if (clear) {
|
|
2266
2266
|
model.filename = "";
|
|
2267
2267
|
ne.value = "";
|
|
2268
|
+
model.fileb64 = "";
|
|
2269
|
+
model.nativefiles = [];
|
|
2268
2270
|
}
|
|
2269
2271
|
else {
|
|
2270
2272
|
for (var i = 0; i < ne.files.length; i++)
|