You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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
The text was updated successfully, but these errors were encountered: