Skip to content

fix(docs): remove redundant check icon from combobox example#9251

Open
PhilemonChiro wants to merge 1 commit intoshadcn-ui:mainfrom
PhilemonChiro:fix/combobox-redundant-check-icon
Open

fix(docs): remove redundant check icon from combobox example#9251
PhilemonChiro wants to merge 1 commit intoshadcn-ui:mainfrom
PhilemonChiro:fix/combobox-redundant-check-icon

Conversation

@PhilemonChiro
Copy link
Copy Markdown
Contributor

Summary

  • Remove manual <Check> icon from combobox example since CommandItem has a built-in check icon
  • Use data-checked attribute to control the check icon visibility
  • Remove unused cn import from example code

Problem

When users install the Command component via CLI, the CommandItem includes a built-in check icon controlled by data-checked. However, the combobox documentation example manually renders a <Check> icon, causing duplicate check marks to appear.

This was reported in #9225.

Solution

Updated the combobox example to use the data-checked attribute on CommandItem instead of manually rendering a <Check> icon. This aligns with how other blocks (like github.tsx) handle selection state.

Test plan

  • Verified the combobox page loads without errors at http://localhost:4000/docs/components/combobox
  • Confirmed no TypeScript compilation errors

Fixes #9225

The combobox example was showing a manual Check icon, but the
CommandItem component already has a built-in check icon that
responds to the data-checked attribute. This caused duplicate
check icons when users installed components via CLI.

Updated the example to use data-checked attribute instead of
manually rendering a Check icon.

Fixes shadcn-ui#9225
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jan 2, 2026

@PhilemonChiro 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]: combobox doc example contains redundant check icon

1 participant