-
Notifications
You must be signed in to change notification settings - Fork 229
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
Option search is being run one change behind #128
Labels
Comments
Also having this issue. |
This seems to work fine on tokenizer though. |
I'm experiencing this as well |
I was experiencing this until i removed |
@fmoo Is there any chance you could take a look at the above PR which fixes this issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When constructing a Typeahead with an array of strings as the object, each change brings up a list of options reflecting the input node's value before the change.
Based on stepping through, it seems to be because
componentWillReceiveProps
is usingthis.state.entryValue
to calculate the options, but thesetState({entryValue})
in_onTextEntryUpdated
hasn't yet been put intothis.state
at that point. As a result, even though the correct options are calculated in_onTextEntryUpdated
, they're instantly overridden before the render occurs by a recalculation incomponentWillReceiveProps
using the previous state.The text was updated successfully, but these errors were encountered: