KazanExpress / vue-simple-suggest

Feature-rich autocomplete component for Vue.js
https://kazanexpress.github.io/vue-simple-suggest/
MIT License
461 stars 73 forks source link

When a request is interrupted, the formatting of sentences breaks #234

Open Vsnegovik opened 4 years ago

Vsnegovik commented 4 years ago

I'm submitting a ...

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

What is the expected behavior?

How are you importing Vue-simple-suggest?

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

kaskar2008 commented 4 years ago

Hello! Can you please provide us the minimal reproduction repo/demo/fiddle/whatever?

goran-despotoski commented 4 years ago

Hi @kaskar2008 , I got the same error as @Vsnegovik , here is a JSFiddle that you can use to reproduce: https://jsfiddle.net/gorandespotoski/wsxm9jeo/

Just press any letter to repeat it, like: aaaaaaaaaaaaaaaaaaaaa and you will notice the json code show up instead of the display-attribute Selection_213

pchunt89 commented 4 months ago

Is there any workaround or fix for this issue? Our users are still complaining about this - and it would be great to resolve this. I'm happy to hack in something if needed.

Thanks

pchunt89 commented 4 months ago

Found a couple of things that seem to help:

  1. Calling clearSuggestions whenever the input changes.
  2. Increasing the debounce value. Guessing that more time between requests means less conflict.