Skip to content

Commit

Permalink
fix(Table): support show tooltip when checkbox is disabled (#1854)
Browse files Browse the repository at this point in the history
Co-authored-by: Zhang Rui <zhangrui@growingio.com>
  • Loading branch information
Ryan Zhang and Zhang Rui committed Feb 22, 2022
1 parent 128d11e commit fa6d1db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/table/hook/useSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ const useSelection = <RecordType,>(
</div>
);
return disabled ? (
contentNode
<Tooltip placement="topLeft" arrowPointAtCenter {...tooltipProps}>
<span>{contentNode}</span>
</Tooltip>
) : (
<Tooltip placement="topLeft" arrowPointAtCenter {...tooltipProps}>
{contentNode}
Expand Down

1 comment on commit fa6d1db

@vercel
Copy link

@vercel vercel bot commented on fa6d1db Feb 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.