Skip to content

fix: type=button on the trigger button - #23

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

fix: type=button on the trigger button#23
projectashik wants to merge 1 commit into
sersavan:mainfrom
projectashik:main

Conversation

@projectashik

Copy link
Copy Markdown

I was just implementing this multiselect component and I found that, when the form has onSubmit handler and user click on the multiselect trigger, the form submits. So, I have just added the type="button" in the multiselect.tsx file, which will stop that from happening.

image

@vercel

vercel Bot commented Sep 14, 2024

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 Sep 14, 2024 6:50pm

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.

3 participants