@esfaenza/forms-and-validations 11.2.159-beta2 → 11.2.159-beta3
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 +2 -2
- package/bundles/esfaenza-forms-and-validations.umd.js.map +1 -1
- package/esm2015/lib/forms/base-form-control.js +3 -3
- package/fesm2015/esfaenza-forms-and-validations.js +2 -2
- package/fesm2015/esfaenza-forms-and-validations.js.map +1 -1
- package/package.json +1 -1
|
@@ -2368,6 +2368,7 @@
|
|
|
2368
2368
|
* @param {NgModel} comp Elemento HTML marcato con "#validationControl"
|
|
2369
2369
|
*/
|
|
2370
2370
|
BaseFormControl.prototype.registerValComp = function (comp) {
|
|
2371
|
+
var _a;
|
|
2371
2372
|
if (comp) {
|
|
2372
2373
|
// È arrivato un nuovo validationContorl (succede solo nel form-select quando cambia la source da 0 elementi / null ad N elementi, quindi al massimo una volta)
|
|
2373
2374
|
if (this.validationControl && this.Form)
|
|
@@ -2375,8 +2376,7 @@
|
|
|
2375
2376
|
this.validationControl = comp;
|
|
2376
2377
|
//Questa serve per passare avanti i validatori
|
|
2377
2378
|
if (this.UseUserValidators) {
|
|
2378
|
-
var validatorsToSet = this._validators.filter(function (v) { return !v.ngOnInit; });
|
|
2379
|
-
this.ngControl.control.setValidators(validatorsToSet);
|
|
2379
|
+
var validatorsToSet = (_a = this._validators) === null || _a === void 0 ? void 0 : _a.filter(function (v) { return !v.ngOnInit; });
|
|
2380
2380
|
//#DEBUG
|
|
2381
2381
|
console.log("Validatori impostati a livello di base form per il validation control: " + this.validationControl.name);
|
|
2382
2382
|
console.log(validatorsToSet);
|