-
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
[1.0.0-beta13] Async options with Promises displays [object Promise] as input value #940
Comments
I've got the same error. |
@VladimirPal thx for the fix |
Fixed by #941, thanks @VladimirPal! And thanks @matejlauko for the comprehensive report too :) |
I'm running 1.0.0-beta13 and am still experiencing this bug. |
@dvreed77 Currently this fix only in master branch |
maybe dumb question, but can I force use this branch from npm? |
Try this: |
@dvreed77 But it will not help you:( You have to build lib folder manually. |
@VladimirPal Was battling some corporate proxy stuff there for a second. I followed all that, but am still getting the [object Promise] in Select. Only difference is I used http protocal vs ssh: |
@dvreed77 i've created builded version, try use it: |
I get this:
Note the invalid error |
Also am trying it without browserify and including the .js and .css from /dist directory and am still getting same issue |
@VladimirPal
and now am using something like this:
This still isn't quite working, but am not getting the [object Promise] in select window. The optionRenderer is only firing on first character, even though I can see elements coming back |
ok, even closer: had to set |
@JedWatson any time frame on when this might get released? I'm not familiar with the release cadence but would love to use fetch + react-select for async options! |
When loading options async with Promises, like in the example
[object Promise]
string is set as input value of SelectIt is because of #907.
loadOptions
from Async component attaches toonInputChange
on Select component.so this
sets newInputValue to return value of loadOptions, which is
[object Promise]
The text was updated successfully, but these errors were encountered: