Skip to content

Commit 312d481

Browse files
committed
Merge pull request #1200 from jharding/1185-bad-async-logic
Fix bad async suggestions rendering logic
2 parents e2d9608 + 173b4b5 commit 312d481

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/typeahead/dataset.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ var Dataset = (function() {
269269
// do not render the suggestions as they've become outdated
270270
if (!canceled && rendered < that.limit) {
271271
that.cancel = $.noop;
272-
rendered += suggestions.length;
273272
that._append(query, suggestions.slice(0, that.limit - rendered));
274273

275274
that.async && that.trigger('asyncReceived', query);

0 commit comments

Comments
 (0)