@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.
@@ -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.detatchedFromform && this.Form)
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++)