Skip to content

Commit

Permalink
Add asChild to the TooltipTrigger in ToolbarButton
Browse files Browse the repository at this point in the history
  • Loading branch information
12joan authored Oct 23, 2023
1 parent 603b677 commit 0d8796d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/www/src/registry/default/plate-ui/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const ToolbarButton = React.forwardRef<

return isLoaded && tooltip ? (
<Tooltip>
<TooltipTrigger>{content}</TooltipTrigger>
<TooltipTrigger asChild>{content}</TooltipTrigger>

<TooltipPortal>
<TooltipContent>{tooltip}</TooltipContent>
Expand Down

0 comments on commit 0d8796d

Please sign in to comment.