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
This commit is contained in:
jtoy authored and GitHub committed 2026-03-09 20:37:55 -04:00
1 parent c7b817ac3f
commit 9e9156cd32
1 file changed
+7 -1
@@ -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);