-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Multiselect not selecting a value #2201
Comments
Yeah, I had the same issue, what I ended out doing was having an inline onChange function. I used something like this: onChange={event => onChange(event.value)}; I would try to add debugger; to your code, and step through it. What you should be looking for is where the selected value gets set. The fact its not being set, tells me that you are not actually getting the select's actual value. |
I solved this using below code:
|
thanks @SoorajChandran 💥 |
Is this a bug or is this how we correctly implement multi? |
Going to 1+ this. I rolled back to |
for any poor soul that follows the docs on the official site that says 'isMulti' change this to 'multi'. |
So, for me it was adding some additional flags to the select: onBlurResetsInput, onSelectResetsInput, onCloseResetsInput. Hope this helps someone :)
|
It works for me but if you see docs
but I had to use Can anybody tell did I miss reading in-between the lines? |
@k-vikram It´s due to version differences.
(Also, please don´t ask the same question multiple times in different issues (even closed ones) (#1308)) |
Ya, figured that out but forgot to update here, many thanks. |
Hi all, Thank you @Rall3n and everyone else who had a part in addressing this question. This is now documented correctly for v2 and above. However, if you feel this issue is still relevant and you'd like us to review it, or have any suggestions regarding this going forward - please leave a comment and we'll do our best to get back to you! |
I use the following code to create a select which works fine.
But when I add a mulit={true} to this, it doesn't work. Even when I select a value it shows undefined. Am I doing something wrong?
The text was updated successfully, but these errors were encountered: