-
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
No input value after select an async option after search #865
Comments
+1 |
1 similar comment
+1 |
I just figured this out, in async mode with an onChange handler you need to set the value to be the full options object, e.g. {label: 'foo', value: 'bar'}, not just a string value |
I already do that but my value setted by props was the string value. it seems more logical to have options object in both side but i think we should not do this. I think the value should be only the value an not the options. (Thx) |
Thanks @cirsteve. I had exactly the same problem and your solution worked for me. |
Hello - In an effort to sustain the We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest version. If you feel this issue / pull request is still relevant and you'd like us to review it, please leave a comment and we'll do our best to get back to you. |
When I select an option after change the inputValue, the selectValue function set the state of the inputValue to an empty string then the loadoptions function is called and my selected option is no more in the options list. so during the renderInput, the function getValueArray return nothing and the place holder is rendered.
Note: After having select one option the renderlabel is called every time on option hover
The text was updated successfully, but these errors were encountered: