Skip to content

Commit

Permalink
fix: permission button tooltip behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois committed Nov 28, 2024
1 parent 8d1ebf6 commit 4bfdf5e
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions frontend/src/component/common/PermissionButton/PermissionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,18 @@ const BasePermissionButton = React.forwardRef<
title={formatAccessText(access, tooltipProps?.title)}
arrow
>
<span id={id}>
<Button
ref={ref}
onClick={onClick}
disabled={disabled || !access}
aria-labelledby={id}
variant={variant}
color={color}
{...rest}
endIcon={endIcon}
>
{children}
</Button>
</span>
<Button
ref={ref}
onClick={onClick}
disabled={disabled || !access}
aria-labelledby={id}
variant={variant}
color={color}
{...rest}
endIcon={endIcon}
>
{children}
</Button>
</TooltipResolver>
);
},
Expand Down

0 comments on commit 4bfdf5e

Please sign in to comment.