Open MickaelMesnage opened 2 weeks ago
Hi @MickaelMesnage.
Responding to your question, I think it is possible to implement search behaviour on the multi select, u just need to give the onValueChange prop the function that will handle the behaviour that you want to do after u make the search.
An example on this is what we're doing for the command search on the user end side on shadcn extension, you can find it here.
Let us know how it goes. Best regards, Belkacem
Hello :)
Can we use the multi-select component with MultiSelectorItems fetched asynchronously based on what is typed in the input?
I tried, but the component doesn't display the SelectorItem.
I added a prop to MultiSelectorInput to retrieve the string typed in the input in the parent component. I use this string to make an asynchronous request, and I set the result in a useState which is then used for my MultiSelectorItems, but it's not working.
This is my code :
Best regards, Mickaël