fix: button component will refresh page (#5420)

This commit is contained in:
Joel 2024-06-20 12:44:27 +08:00 • committed by GitHub
commit 51d34f5936
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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}