-
Notifications
You must be signed in to change notification settings - Fork 74
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
Graphical glitch when using async data retrieval and debouncing #441
Comments
I forgot to mention that I can reproduce this bug (at least) on latest versions of Chrome and Firefox :) |
The issue disappears with my patch (I cannot reproduce the bug anymore). For example, before my patch, you could have :
Hope I'm clear enough :) |
My guess for the real problem is that multiple calls to "await this.list(value))" can be done in a very short time and those promises can resolve in any order when the server api is a bit laggy. |
Hopefully last comment: I updated my patch so it can be taken as-is, without doing further code changes afterwards, even if I think that "isPlainSuggestion" should be updated outside of getSuggestions() at same time than |
Hello, @tbl0605 |
@kaskar2008, would it be possible to make a new release now that this patch is merged? |
Hi,
I recently created an autocomplete component for city names using vue-simple-suggest.
I'm using async data retrieval (https://github.com/KazanExpress/vue-simple-suggest#async-example) and debouncing.
It works great, except that sometimes I have graphical glitches (see my screenshots).
I first thought it was because of the way I'm retrieving the data (or because of axios), but I have same problem when I rewrite my code using the fetch() function.
Step to reproduce:
PS: you can also try the fetch() version, but the bug is harder to reproduce with it: https://codesandbox.io/s/bug-vue-simple-suggest-2-eyuk8
The text was updated successfully, but these errors were encountered: