Skip to content

Commit

Permalink
Pass missing props to icon-button to of ToolbarActionButton to fix …
Browse files Browse the repository at this point in the history
…missing `onClick` (#3015)
  • Loading branch information
jamesricky authored Jan 3, 2025
1 parent 0385927 commit 8114a6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nice-bugs-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@comet/admin": patch
---

Fix `onClick` and other props not being passed to the icon version of some button components
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const ToolbarActionButton = (props: ToolbarActionButtonProps) => {

return useIconButton && icon ? (
<StyledTooltip title={children} {...tooltipProps}>
<StyledIconButton ownerState={ownerState} {...iconButtonProps}>
<StyledIconButton ownerState={ownerState} {...restProps} {...iconButtonProps}>
{icon}
</StyledIconButton>
</StyledTooltip>
Expand Down

0 comments on commit 8114a6a

Please sign in to comment.