Skip to content

Commit 295058f

Browse files
committed
fix: default type for form control
1 parent 56294e0 commit 295058f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/button/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const Button: React.FC<ButtonProps> = React.forwardRef((props, ref) => {
2828
} = props
2929

3030
return <button
31-
ref={ref} {...mergeComponentProps(`button button--${color} ${active ? "button--active" : ""} ${disabled ? "button--disabled" : ""} button--${variant} button--${paddingSize}`, args)}
31+
ref={ref} type={"button"} {...mergeComponentProps(`button button--${color} ${active ? "button--active" : ""} ${disabled ? "button--disabled" : ""} button--${variant} button--${paddingSize}`, args)}
3232
aria-disabled={disabled ? "true" : "false"}>
3333
{children}
3434
</button>

0 commit comments

Comments
 (0)