Skip to content

Commit

Permalink
fix(Button): starticon prevented loading animation from rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
benjitrosch committed Jul 28, 2023
1 parent c0cc690 commit ecb4add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(
style={style}
disabled={disabled}
>
{!startIcon && loading && <Loading size={size} />}
{loading && <Loading size={size} />}
{startIcon && !loading && startIcon}
{children}
{endIcon && endIcon}
Expand Down

0 comments on commit ecb4add

Please sign in to comment.