corejavascript / corejavascript/typeahead.js

Unnecessary AJAX request sent on hint autocomplete

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
968
Forks
231
PR merge metrics
No merged PRs in 30d

Description

Cross-posting https://github.com/twitter/typeahead.js/issues/1344

In this example : http://twitter.github.io/typeahead.js/examples/#remote

If I type Chi, there's 1 network request and I see 1 suggestion i.e. Chicago. Now if I hit → or Tab key to autocomplete the hint, there's another network request sent for Chicago. How can I avoid this ?

Probably related to #188 & #548

( I'll add that the reason isn't just to save on network requests. I have an app that dynamically updates the request URL and I want a better control over which requests are sent. In the above case, an automatic request is sent using a stale URL )

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.