@klippa/ngx-enhancy-forms 14.22.8 → 14.22.10

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
  }
@@ -685,8 +685,6 @@ class FormElementComponent {
685
685
  const elementTop = this.internalComponentRef.nativeElement.getBoundingClientRect().top;
686
686
  const parentScrollTop = parent.scrollTop;
687
687
  const answer = elementTop - parentTop + parentScrollTop;
688
- console.log('answer', parentTop, elementTop, parentScrollTop, answer);
689
- console.log(parent, this.internalComponentRef.nativeElement);
690
688
  parent.scrollTo({
691
689
  top: answer - 30,
692
690
  behavior: 'smooth'