diff --git a/src/assets/formValidator.ts b/src/assets/formValidator.ts index 7718ebff..f02546db 100644 --- a/src/assets/formValidator.ts +++ b/src/assets/formValidator.ts @@ -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(); }