Skip to content

Commit

Permalink
Merge pull request #4061 from terrestris/prop-fix-simple-button
Browse files Browse the repository at this point in the history
Pass `type` prop to `Button`
  • Loading branch information
dnlkoch authored Oct 17, 2024
2 parents d64e397 + 60270fd commit 36e433a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Button/SimpleButton/SimpleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const SimpleButton: React.FC<SimpleButtonProps> = ({
tooltipProps = {
mouseEnterDelay: 1.5
},
children,
...passThroughProps
}) => {

Expand All @@ -50,9 +51,10 @@ const SimpleButton: React.FC<SimpleButtonProps> = ({
>
<Button
className={finalClassName}
type={type}
{...passThroughProps}
>
{passThroughProps.children}
{children}
</Button>
</Tooltip>
);
Expand Down

0 comments on commit 36e433a

Please sign in to comment.