You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preventing suggestions where the query.length === 0 is a good step. But it might be better to just have an option for a minimum query length before suggestions are shown? It could be set to zero by default. In some cases, you might not want to search on just one or two characters either.
In the best picture winners example, typeahead is configured like this:
If I enter "b", it issues a network request to
http://twitter.github.com/typeahead.js/data/films/queries/b.json
for which the response is
Good.
Now if I delete the 'b' from the input, typeahead issues a request to:
http://twitter.github.com/typeahead.js/data/films/queries/.json
Which comes back with a 404. If there isn't a way to prevent this request, this is a bug.
The text was updated successfully, but these errors were encountered: