From b800f59329efe70171f729f1e51e9fd0b56e6e31 Mon Sep 17 00:00:00 2001 From: patrickhrastnik <30524365+patrickhrastnik@users.noreply.github.com> Date: Sun, 30 Jul 2017 12:22:53 +0200 Subject: [PATCH] Issue #1661 I think this might be a valid solution for #1661 (and #1653 ) --- src/typeahead/dataset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typeahead/dataset.js b/src/typeahead/dataset.js index fce09c30..0949cfff 100644 --- a/src/typeahead/dataset.js +++ b/src/typeahead/dataset.js @@ -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); }