@magic-xpa/angular 4.900.0-dev490.280 → 4.900.0-dev490.281

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.
@@ -3317,10 +3317,14 @@ class MgformatMagicDirective {
3317
3317
  if (control.validator == null)
3318
3318
  control.setValidators(Validators.maxLength(pic.getMaskLength()));
3319
3319
  else {
3320
- control.setValidators(Validators.maxLength(pic.getMaskLength()));
3321
- if (isUndefined(this.magicDir.rowId))
3322
- this.magicDir.rowId = '0';
3323
- control.setValidators([control.validator, this._task.customValidator(this.magicDir.rowId, this.magicDir.id)]);
3320
+ if (pic.isFormatExp()) {
3321
+ control.setValidators(Validators.maxLength(pic.getMaskLength()));
3322
+ if (isUndefined(this.magicDir.rowId))
3323
+ this.magicDir.rowId = '0';
3324
+ control.setValidators([control.validator, this._task.customValidator(this.magicDir.rowId, this.magicDir.id)]);
3325
+ }
3326
+ else
3327
+ control.setValidators([control.validator, Validators.maxLength(pic.getMaskLength())]);
3324
3328
  }
3325
3329
  control.updateValueAndValidity();
3326
3330
  }