Skip to content

Commit

Permalink
fixed "enter" not working in many forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Ynng committed Jan 19, 2023
1 parent cbfc1c8 commit 3e47de8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Atoms/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const Button = forwardRef(
iconComponent,
icon,
iconRight,
type='button',
...props
}: ButtonProps,
ref: React.Ref<HTMLButtonElement>
Expand All @@ -101,6 +102,7 @@ const Button = forwardRef(
)}
disabled={disabled || loading}
ref={ref}
type={type}
{...props}
>
{iconComponent}
Expand Down

0 comments on commit 3e47de8

Please sign in to comment.