Skip to content

Commit eb8cb77

Browse files
fix(apollo-wind): apply 'button' type to Button component conditionally
1 parent 767cf61 commit eb8cb77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/apollo-wind/src/components/ui/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
4343
<Comp
4444
className={cn(buttonVariants({ variant, size, className }))}
4545
ref={ref}
46-
type="button"
46+
type={Comp === 'button' ? 'button' : undefined}
4747
{...props}
4848
/>
4949
);

0 commit comments

Comments
 (0)