-
Notifications
You must be signed in to change notification settings - Fork 585
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
Deleting of letters from query when typing fast #494
Comments
@moroshko I'm having the same issue, albeit on 15.6.2 -- have you had any other reports of issues around this with React 16? |
Having the same issue in IE as well. Any update? |
In our case, this issue was caused by race condition when fetching suggestions. If user types, request is send with every key press and then autosuggest value can be updated by old response. Since promise is not possible to cancel we resolved this problem by switching to observables and introduced RxJS and redux-observables. Then request is canceled when new one is started. If you want I can provide example. |
So this is my code handling
The only place where we set the input state is in It will be great if you can provide me some examples. |
I'm heading to issue with autocomplete when I'm trying to asynchronously fetch data via
onSuggestionFetchRequest
. Some letters are deleted from the query when user is typing fast. This issue is proved only in IE11. Using React version 16.2.0, React Autosuggest version 9.3.2 and Redux for global state management.First, I thought it is clearly connected to well described problem with onChange in IE11 but an update of React to version 16 didn't help.
Then, I found the problem with canceling of old async request when fetching data. Unfortunately, this did not help as well.
Any help or hint is highly appreciated!
Example of code:
The text was updated successfully, but these errors were encountered: