tuain-ng-forms-lib 14.0.7 → 14.0.8

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.
@@ -686,6 +686,7 @@ class FieldDescriptor extends FormElement {
686
686
  get value() { return this.getValue(); }
687
687
  set value(newValue) { this.setValue(newValue); }
688
688
  notifyEditionPartial() {
689
+ this.resetError();
689
690
  this._editionPartial.next({ code: this.fieldCode, intrinsicValidation: true });
690
691
  }
691
692
  notifyEditionFinish() {
@@ -693,6 +694,7 @@ class FieldDescriptor extends FormElement {
693
694
  let intrinsicValidation = true;
694
695
  const fieldDefaultFormat = (_b = (_a = this._formConfig.fieldTypesPatterns) === null || _a === void 0 ? void 0 : _a[this.fieldType]) !== null && _b !== void 0 ? _b : null;
695
696
  const fieldValue = this.getValue();
697
+ this.resetError();
696
698
  if (fieldValue && (fieldDefaultFormat || this.fieldFormat)) {
697
699
  intrinsicValidation = ((_c = fieldDefaultFormat === null || fieldDefaultFormat === void 0 ? void 0 : fieldDefaultFormat.test(fieldValue)) !== null && _c !== void 0 ? _c : true)
698
700
  && ((_e = (_d = this.fieldFormat) === null || _d === void 0 ? void 0 : _d.test(fieldValue)) !== null && _e !== void 0 ? _e : true);
@@ -3047,7 +3049,6 @@ class BasicFormComponent {
3047
3049
  if (!fieldToValidate) {
3048
3050
  return false;
3049
3051
  }
3050
- fieldToValidate.resetError();
3051
3052
  const validationCallbacks = this._fieldInputValidation[fieldCode];
3052
3053
  if (validationCallbacks) {
3053
3054
  const clientValidationPromises = [];
@@ -3067,7 +3068,6 @@ class BasicFormComponent {
3067
3068
  if (!fieldToValidate) {
3068
3069
  return;
3069
3070
  }
3070
- fieldToValidate.resetError();
3071
3071
  const validationCallbacks = this._fieldValidationsStart[fieldCode];
3072
3072
  if (validationCallbacks) {
3073
3073
  const clientValidationPromises = [];