ngx-rs-ant 0.9.8 → 0.9.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.
@@ -1396,6 +1396,13 @@ class FormComponent {
1396
1396
  submitForm($event) {
1397
1397
  if (!$event.valid) {
1398
1398
  this.submitCallback.emit({ success: false });
1399
+ for (let controlKey in this.formGroup.controls) {
1400
+ const control = this.formGroup.controls[controlKey];
1401
+ if (!control.valid && control.originElement) {
1402
+ control.originElement.scrollIntoView();
1403
+ break;
1404
+ }
1405
+ }
1399
1406
  return;
1400
1407
  }
1401
1408
  this.service.createOrUpdate(this.tenant, this.className, {