@esfaenza/forms-and-validations 11.2.157-beta1 → 11.2.157

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.
@@ -2307,7 +2307,7 @@
2307
2307
  BaseFormControl.prototype.checkRequiredValidator = function () {
2308
2308
  // controllo se è settato un required per decidere in maniera condizionale se utilizzare il validatore required nel componente interno
2309
2309
  // Lo faccio qui e non in un eventuale ngOnInit o costruttore perché ngOnInit non sempre viene chiamato e da costruttore il validatore non ha ancora il valore giusto
2310
- if (this._validators && this._validators.some(function (elem) { return elem instanceof forms.RequiredValidator && elem.required; }))
2310
+ if (this._validators && this._validators.some(function (elem) { return elem instanceof forms.RequiredValidator && (elem.required === true || elem.required === null || elem.required === undefined); }))
2311
2311
  this.Required = true;
2312
2312
  };
2313
2313
  /** @ignore */