@klippa/ngx-enhancy-forms 14.22.8 → 14.22.9

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.
@@ -390,7 +390,7 @@ class FormComponent {
390
390
  }
391
391
  handleSubmission(originalDisabledStates, renderedAndEnabledValues, renderedButDisabledValues, formGroupValue) {
392
392
  if (this.formGroup.invalid) {
393
- this.activeControls.find((e) => !e.formControl.valid)?.formElement?.scrollTo();
393
+ this.activeControls.find((e) => e.formControl.invalid)?.formElement?.scrollTo();
394
394
  this.setDisabledStatesForAllControls(originalDisabledStates);
395
395
  return Promise.reject(invalidFieldsSymbol);
396
396
  }