@esfaenza/forms-and-validations 11.2.76 → 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.Form && !!this.Form.getControl(this.validationControl))
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 */