typeahead does not show up if suggestions.length == typeahead.limit
https://github.com/twitter/typeahead.js/blob/588440f66559714280628a4f9799f0c4eb880a4a/dist/typeahead.bundle.js#L1723
the addition of suggestions.length to the "rendered" variable, should be done AFTER appending the suggestions, that._append(query, suggestions.slice(0, that.limit - rendered));
because otherwise that.limit is equal to rendered, and NOTHING gets rendered (suggestions.slice(0,0) returns empty array)
Just ran into the sampe problem...
Solution for me: set limit: Number.MAX_SAFE_INTEGER and limit the amount to display in the backend!
Related problem:
if your limit is 5 and you have 3 suggestions, only 2 will show.
limit - suggestions = 2
+1 bitten by this here.
i solved this problem by the way. i have config option of type hit with limit always more number show in backend response . It worked perfect .
Seems like #1672 should fix this.
In case anyone finds this issue (like I did), this is fixed in the maintained fork https://github.com/corejavascript/typeahead.js
Will this issue be fixed soon? It is still an issue.
This looks like a duplicate of ticket #1324. It could be that https://github.com/corejavascript/typeahead.js/ solves this problem.