Skip to content

Commit b3d2614

Browse files
author
Alexandra Zwinger
committed
Fix my bug :(
1 parent 95ab89d commit b3d2614

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/CuteButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export function CuteButton(props: {
1616
type={props.type}
1717
style={{background: props.bgColor, color: props.textColor}}
1818
onClick={(e) => {
19-
e.preventDefault();
19+
if (props.type !== "submit") {
20+
e.preventDefault();
21+
}
2022
props.onClick?.();
2123
}}
2224
>

0 commit comments

Comments
 (0)