This seems to be happening in the async function within update:
function async(suggestions) {
suggestions = suggestions || [];
if (!canceled && rendered < that.limit) {
that.cancel = $.noop;
rendered += suggestions.length;
that._append(query, suggestions.slice(0, that.limit - rendered));
that.async && that.trigger("asyncReceived", query);
}
}
The line rendered += suggestions.length; should be placed one line below, after that._append(query, suggestions.slice(0, that.limit - rendered));
This was happening in 0.11.1
yep, the above fixed a problem I was having too! good work.
I came here to point out the same mistake. Took me an hour to find it!
Looks like a pretty grave bug too. Maybe there are some missing tests?
try this https://github.com/corejavascript/typeahead.js
maybe can solve.
Duplicate of #1232
Most helpful comment
try this https://github.com/corejavascript/typeahead.js
maybe can solve.