Skip to content

Commit 12f2e24

Browse files
Daaarklingdg
authored andcommitted
Submitter is property of event
1 parent 8da5796 commit 12f2e24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assets/formValidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ export class FormValidator {
437437
form.noValidate = true;
438438

439439
form.addEventListener('submit', (e) => {
440-
if (!this.validateForm(form.submitter || form)) {
440+
if (!this.validateForm((e.submitter || form) as HTMLFormElement | FormElement)) {
441441
e.stopPropagation();
442442
e.preventDefault();
443443
}

0 commit comments

Comments
 (0)