ngTagsInput icon indicating copy to clipboard operation
ngTagsInput copied to clipboard

Autocomplete debounce-delay is broken with long-running requests

Open mryellow opened this issue 5 years ago • 2 comments

With the request not responding before the delay timer it waits for them to finish and then sends more requests.

Steps to duplicate:

  • Type 3 characters.
  • 1 request is sent and waits for a response
  • Response arrives
  • Delay is triggered
  • Another request is sent
  • Response arrives
  • Delay is triggered
  • Another request is sent

Expected results:

  • Type 3 characters
  • 1 request is sent
  • If further characters are typed when this is pending, the request should be cancelled

debounce-delay functioning should be not be dependant on response times.

mryellow avatar Mar 20 '20 02:03 mryellow

I believe this long-running request suffered the same issue but was misunderstood. https://github.com/mbenford/ngTagsInput/issues/418

mryellow avatar Mar 20 '20 02:03 mryellow

This comment talks about Q promises being understood but normal Promises failing. Perhaps ties in here.

https://github.com/mbenford/ngTagsInput/issues/135#issuecomment-41462315

mryellow avatar Mar 20 '20 06:03 mryellow