Skip to content

Commit

Permalink
Submitter is property of event
Browse files Browse the repository at this point in the history
  • Loading branch information
Daaarkling committed Oct 31, 2024
1 parent 8da5796 commit 4888103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/formValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ export class FormValidator {
form.noValidate = true;

form.addEventListener('submit', (e) => {
if (!this.validateForm(form.submitter || form)) {
if (!this.validateForm((e.submitter || form) as HTMLFormElement | FormElement)) {
e.stopPropagation();
e.preventDefault();
}
Expand Down

0 comments on commit 4888103

Please sign in to comment.