Skip to content

Commit

Permalink
Merge pull request #2712 from udecode/12joan-patch-1
Browse files Browse the repository at this point in the history
Add `asChild` to the TooltipTrigger in ToolbarButton
  • Loading branch information
zbeyens authored Oct 24, 2023
2 parents 603b677 + 0d8796d commit b22b06e
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 b22b06e

Please sign in to comment.