@esfaenza/forms-and-validations 15.2.41 → 15.2.42

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.
@@ -1922,6 +1922,10 @@ class BaseFormControl {
1922
1922
  v._createValidator();
1923
1923
  });
1924
1924
  }
1925
+ var prevValidators = this.ngControl.control._validators;
1926
+ this.ngControl.control.clearValidators();
1927
+ if (prevValidators)
1928
+ this.ngControl.control.addValidators(prevValidators.filter(v => !v.ngOnInit));
1925
1929
  if (this._validators)
1926
1930
  this.ngControl.control.addValidators(this._validators.filter(v => !v.ngOnInit));
1927
1931
  this.ngControl.control.updateValueAndValidity();