Skip to content

Commit

Permalink
fix(Button): fix overriding button type
Browse files Browse the repository at this point in the history
  • Loading branch information
amrelbialy committed Aug 22, 2024
1 parent f5ce550 commit 272c594
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const getIconSize = (sizeName: CrossButtonSizeType | undefined): number => {

const CrossButton = intrinsicComponent<CrossButtonProps, HTMLButtonElement>(
({ size = Size.Lg, ...rest }: CrossButtonProps, ref): JSX.Element => (
<Styled.CrossButton size={size} {...rest} ref={ref}>
<Styled.CrossButton type="button" size={size} {...rest} ref={ref}>
<CrossOutline size={getIconSize(size)} />
</Styled.CrossButton>
)
Expand Down

0 comments on commit 272c594

Please sign in to comment.