-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncontrolled MultiSelect example? #3429
Comments
The example in the docs is actually uncontrolled but it might be a little hard to understand because it does much more than the most basic example usage of the component. Your code looks fine; you do need to set |
Thanks for the quick reply! I thought that the Here's a link to a repro on the sandbox: https://codesandbox.io/s/1vv1l03j2j |
I am running into this same issue today. Was there a resolution? |
@richwandell this is a pretty old issue, can you please create a new one and share a code sandbox of your problem? |
Did anyone get this to work. I wonder why the MultiSelect looks like a singleselect. Are there certain props that are not required but needed for the mutliselect to work @zachkirsch @adidahiya |
The answer to this is that you need the selectedItems prop along with the tagRender prop for it to Render. Please don't spent as much time on this as I did finding this out :( |
Environment
Question
Hi!
I'm trying to get an uncontrolled MultiSelect working, but haven't had much luck. Is there an example of one somewhere?
Here's what I've got. Am I missing something obvious? Is specifying the
onClick
andactive
in theMenuItem
even necessary?This is what renders:
Thanks!
The text was updated successfully, but these errors were encountered: