From 9e9156cd321e885777908f2c712f7d338db00df8 Mon Sep 17 00:00:00 2001 From: jtoy Date: Mon, 9 Mar 2026 18:37:55 -0600 Subject: [PATCH] fix monterey (#1042) an api for safari that is not supported was used, this fixes it as a fallback. Tested and works. Fixes: https://github.com/storytold/artcraft/issues/1008 --- .../libs/components/login-modal/src/lib/login-modal.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/libs/components/login-modal/src/lib/login-modal.tsx b/frontend/libs/components/login-modal/src/lib/login-modal.tsx index 804fcfcd10..d320f5812d 100644 --- a/frontend/libs/components/login-modal/src/lib/login-modal.tsx +++ b/frontend/libs/components/login-modal/src/lib/login-modal.tsx @@ -86,7 +86,13 @@ export function LoginModal({ if (step === 2) { // Trigger the form submit in ArtCraftSignUp if (artCraftFormRef.current) { - artCraftFormRef.current.requestSubmit(); + if (artCraftFormRef.current.requestSubmit) { + artCraftFormRef.current.requestSubmit(); + } else { + artCraftFormRef.current.dispatchEvent( + new Event('submit', { cancelable: true, bubbles: true }) + ); + } } } else { setStep(step + 1);