We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17f041a commit de88a01Copy full SHA for de88a01
1 file changed
src/Form.tsx
@@ -430,7 +430,10 @@ const _Form: Form = React.forwardRef(
430
};
431
432
const handleSubmit = (e?: React.SyntheticEvent) => {
433
- if (e && e.preventDefault) e.preventDefault();
+ if (e && e.preventDefault && e.stopPropagation) {
434
+ e.preventDefault();
435
+ e.stopPropagation();
436
+ }
437
clearPendingValidations();
438
submitTimeout.set(() => submit().catch(done));
439
0 commit comments