Skip to content

Commit

Permalink
refactor: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-K-B committed Jun 14, 2023
1 parent 6f99fa5 commit 5a9639a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/grafana-ui/src/components/IconButton/IconButton.tsx
Expand Up @@ -84,9 +84,9 @@ export const IconButton = React.forwardRef<HTMLButtonElement, Props>((props, ref
);

if ('tooltip' in props) {
const { tooltip, tooltipPlacement } = props;
const { tooltip, tooltipPlacement, ...rest } = props;
return (
<Tooltip ref={ref} content={tooltip} placement={tooltipPlacement}>
<Tooltip ref={ref} content={tooltip} placement={tooltipPlacement} {...rest}>
{button}
</Tooltip>
);
Expand Down

0 comments on commit 5a9639a

Please sign in to comment.