Cancel (or not respond to) autocomplete if subsequent text is changed.
Opened this issue · 0 comments
abargnesi commented
Changes to the BEL Statement input value should cancel (or not respond to) any in-flight completion promises.
The following describes the desired behavior:
- Type some text.
- debounce time passes; fetch completions in a promise
- Type some more text.
- The text change event should cancel the promise in (2) if it has not completed yet.
We may be able to tombstone the promise such that when it receives the completion response we can disregard it.
There may also be a work-around to cancel promises - see this gist.