Skip to content

Conversation

@0372hoanghoccode
Copy link

Description

Fixes #9277

Changed SidebarMenuButton to always use the render prop and wrap it with TooltipTrigger using composition. This preserves the composition chain: TooltipTrigger → Link → button content.

Changes

  • Updated apps/v4/registry/bases/base/ui/sidebar.tsx
  • Changed line 529: Always use
    ender prop instead of conditionally replacing it with TooltipTrigger`n- Changed line 548: Wrap comp with when tooltip is present

Before

When tooltip was present, the render prop was replaced with TooltipTrigger, losing any custom render component (like Link).

After

The render prop is always respected, then wrapped with TooltipTrigger using composition, preserving the full component chain.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Fixes shadcn-ui#9277

Changed SidebarMenuButton to always use the render prop and wrap it with TooltipTrigger using composition. This preserves the composition chain: TooltipTrigger → Link → button content.

Before: When tooltip was present, render prop was replaced with TooltipTrigger
After: render prop is always respected, then wrapped with TooltipTrigger
@vercel
Copy link
Contributor

vercel bot commented Jan 7, 2026

@0372hoanghoccode is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: SidebarMenuButton: render prop ignored when tooltip is present (Base UI)

1 participant