Skip to content

Commit

Permalink
Issue twitter#1661
Browse files Browse the repository at this point in the history
I think this might be a valid solution for twitter#1661 (and twitter#1653 )
  • Loading branch information
patrickhrastnik authored Jul 30, 2017
1 parent 588440f commit b800f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typeahead/dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ var Dataset = (function() {
// do not render the suggestions as they've become outdated
if (!canceled && rendered < that.limit) {
that.cancel = $.noop;
rendered += suggestions.length;
that._append(query, suggestions.slice(0, that.limit - rendered));
rendered += suggestions.length;

that.async && that.trigger('asyncReceived', query);
}
Expand Down

0 comments on commit b800f59

Please sign in to comment.