Skip to content

Commit ef4016b

Browse files
authored
Merge pull request #185 from Randy424/ACM-15271-supress-n-implicit-submission
ACM-15271 - Suppress implicit form submission
2 parents d3eded0 + 7fced8f commit ef4016b

File tree

2 files changed

+39
-43
lines changed

2 files changed

+39
-43
lines changed

package-lock.json

Lines changed: 30 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Step.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,13 @@ export function StepInternal(props: StepProps) {
6565
// Don't use forms in steps which are forms
6666
return <Fragment>{props.children}</Fragment>
6767
}
68-
return <Form>{props.children}</Form>
68+
return (
69+
<Form
70+
onSubmit={(event) => {
71+
event.preventDefault()
72+
}}
73+
>
74+
{props.children}
75+
</Form>
76+
)
6977
}

0 commit comments

Comments
 (0)