fix: button component will refresh page (#5420)

This commit is contained in:
Joel
2024-06-20 12:44:27 +08:00
committed by GitHub
parent a51ec2094f
commit 51d34f5936
2 changed files with 7 additions and 4 deletions

View File

@@ -28,6 +28,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
({ className, variant, loading, children, ...props }, ref) => {
return (
<button
type='button'
className={classNames(buttonVariants({ variant, className }))}
ref={ref}
{...props}