From c3ef56d3ce37cda386fc0131214031b4da86d548 Mon Sep 17 00:00:00 2001 From: cristian-sima Date: Fri, 23 Oct 2015 10:47:20 +0100 Subject: [PATCH] Fix bug Twitter https://github.com/twitter/typeahead.js/pull/1200 --- static/3rd_party/others/js/typeahead.bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/3rd_party/others/js/typeahead.bundle.js b/static/3rd_party/others/js/typeahead.bundle.js index 857b400..cfc47f2 100644 --- a/static/3rd_party/others/js/typeahead.bundle.js +++ b/static/3rd_party/others/js/typeahead.bundle.js @@ -1720,8 +1720,8 @@ suggestions = suggestions || []; 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); } }