Skip to content

Bug fixed: Close button on each badge was not removing the item. - #64

Open
mohammadazeemwani wants to merge 1 commit into
sersavan:mainfrom
mohammadazeemwani:main
Open

Bug fixed: Close button on each badge was not removing the item.#64
mohammadazeemwani wants to merge 1 commit into
sersavan:mainfrom
mohammadazeemwani:main

Conversation

@mohammadazeemwani

Copy link
Copy Markdown

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

vercel Bot commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

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