From 12f2e24109d4e7f75f20bc7f9eb11df0b70e8dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Va=C5=88ura?= Date: Thu, 31 Oct 2024 15:45:04 +0100 Subject: [PATCH] Submitter is property of event --- src/assets/formValidator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }