shadcn-multi-select-component
shadcn-multi-select-component copied to clipboard
fix: type=button on the trigger button
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.