@magic-xpa/angular 4.900.0-dev490.129 → 4.900.0-dev490.131
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.
@@ -3291,7 +3291,14 @@ class MgformatMagicDirective {
|
|
3291
3291
|
}
|
3292
3292
|
else {
|
3293
3293
|
if (attr == StorageAttribute.ALPHA || attr == StorageAttribute.UNICODE) {
|
3294
|
-
control.
|
3294
|
+
if (control.validator == null)
|
3295
|
+
control.setValidators(Validators.maxLength(pic.getMaskLength()));
|
3296
|
+
else {
|
3297
|
+
control.setValidators(Validators.maxLength(pic.getMaskLength()));
|
3298
|
+
if (isUndefined(this.magicDir.rowId))
|
3299
|
+
this.magicDir.rowId = '0';
|
3300
|
+
control.setValidators([control.validator, this._task.customValidator(this.magicDir.rowId, this.magicDir.id)]);
|
3301
|
+
}
|
3295
3302
|
control.updateValueAndValidity();
|
3296
3303
|
}
|
3297
3304
|
}
|