Skip to content

Commit bc80f7a

Browse files
committed
fix(forms): stop event propagation on form submit
1 parent 3b6f13f commit bc80f7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/forms/Form.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export function Form({
2828

2929
function handleSubmit(e) {
3030
e.preventDefault();
31+
e.stopPropagation();
3132

3233
formState.setSubmitedAttempted();
3334

0 commit comments

Comments
 (0)