From 60b953b6b8442656bf0234de872ddd25270a6699 Mon Sep 17 00:00:00 2001 From: Tomasz Dziezyk Date: Thu, 30 Nov 2023 11:22:05 +0100 Subject: [PATCH] 68 Fix form submitting --- blocks/v2-forms/forms/event-notify.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blocks/v2-forms/forms/event-notify.js b/blocks/v2-forms/forms/event-notify.js index d4cc52a4..e62ce210 100644 --- a/blocks/v2-forms/forms/event-notify.js +++ b/blocks/v2-forms/forms/event-notify.js @@ -38,7 +38,7 @@ const formContent = `
- +
`; @@ -71,6 +71,8 @@ export const onSubmit = async (form, handleSubmit) => { if (form.checkValidity()) { await handleSubmit(form); + } else { + form.querySelector('button[type="submit"').removeAttribute('disabled'); } };