@esfaenza/forms-and-validations 15.2.19 → 15.2.20
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/esm2020/lib/validations/validation-select/validation-select.component.mjs +2 -2
- package/fesm2015/esfaenza-forms-and-validations.mjs +1 -1
- package/fesm2015/esfaenza-forms-and-validations.mjs.map +1 -1
- package/fesm2020/esfaenza-forms-and-validations.mjs +1 -1
- package/fesm2020/esfaenza-forms-and-validations.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -578,7 +578,7 @@ class ValidationSelectComponent extends BaseValidation {
|
|
|
578
578
|
//controllo se è settato un required per decidere in maniera condizionale se utilizzare il validatore required nel componente interno
|
|
579
579
|
//Lo imposto ANCHE se sono in situazione di noValidate perché comporta eventuali modifiche grafiche che potrebbero servirmi, ma comunque non va a d aggiungere
|
|
580
580
|
//validatori o cose strane, quindi GG
|
|
581
|
-
if (this._validators && this._validators.some(elem => elem instanceof RequiredValidator && elem.required))
|
|
581
|
+
if (this._validators && this._validators.some(elem => elem instanceof RequiredValidator && (elem.required === true || elem.required === null || elem.required === undefined)))
|
|
582
582
|
this.required = true;
|
|
583
583
|
}
|
|
584
584
|
/**
|