Skip to content
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

Fix async loadOptions bug. #1054

Closed
wants to merge 1 commit into from
Closed

Fix async loadOptions bug. #1054

wants to merge 1 commit into from

Conversation

chenzhihao
Copy link

We should not return a promise here.

The code:

return inputPromise.then(() => {
  return input;
})

is still a promise.

The returned value will be used at handleInputChange() of Select.js();
And this value will be used to 'setState(...)' as 'inputValue' which will finally become '[object Promise]' string as 'inputValue'.

We should not return a promise here. The retured value will be used at handleInputChange() of Select.js.
And this value will be used to setState as 'inputValue' which will become '[object Promise]'.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.538% when pulling 0314561 on chenzhihao:master into 01de8d3 on JedWatson:master.

@dcurletti
Copy link
Contributor

This should get pulled in ASAP.

@bvaughn
Copy link
Collaborator

bvaughn commented Sep 18, 2016

This issue has been resolved via PR #1226 by way of an Async refactor.

@bvaughn bvaughn closed this Sep 18, 2016
@bvaughn bvaughn mentioned this pull request Sep 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants