mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 00:18:17 +00:00
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:
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);
|
||||
|
||||
Reference in new issue
Block a user