Skip to content

Conversation

@mohammadazeemwani
Copy link

Issue

The issue arises from using the latest badge component from shadcn; which has a default behavior to set the pointer-events to none for SVG's.

Implementation

Same was fixed by applying to the badge in the multi-select component.

Other Ways to solve the problem (not-recommended)

While there are other ways to solve the same problem, for example, changing the in the badge component itself, but that would most probably break the components that you use from the shadcn itself. So it's wise to change that here.

Issue: The issue arises from using the latest badge component from shadcn; which has a default behavior to set the pointer-events to none for SVG's.

Implementation: Same was fixed by applying  to the badge in the multi-select component.

Other Ways to solve the same (not-recommended): While there are other ways to solve the same problem, for example, changing the  in the badge component itself, but that would most probably break the components that you use from the shadcn itself. So it's wise to change that here.
@vercel
Copy link

vercel bot commented Jul 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shadcn-multi-select-component ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 10:13am

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.

1 participant