Skip to content

Unnecessary AJAX request sent on hint autocomplete #11

@bitcity

Description

@bitcity

Cross-posting twitter/typeahead.js#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 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions