Commit aae7b2a8 authored by Merzough Münker's avatar Merzough Münker
Browse files

fix(form-directive): prevent default submit handling

parent c320c908
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -273,6 +273,7 @@ export class FormDirective<T extends Record<string, any> = any> extends FormGrou

  @HostListener('submit', [ '$event' ])
  public onSubmit($event: Event): boolean {
    $event.preventDefault();
    super.onSubmit($event);
    if (this.form.valid) {
      this.submit();