From 0975cfadf1c10a173812a073f7da26f87794d6a1 Mon Sep 17 00:00:00 2001 From: Kevin Mehall Date: Tue, 16 Jul 2013 11:31:57 -0400 Subject: [PATCH] [third] Patch bootstrap-typeahead to hide when the source fn returns false. On the next line, it checks and returns immediately if the source returns false, but it should first hide the existing box or else it's just left there until the next typeahead refresh. This fixes the issue with the typeahead not closing properly when a space is typed that was introduced in 7aa3f762. (imported from commit cbe77e2152d889fe53d874e97f41cfc725166929) --- zephyr/static/third/bootstrap/js/bootstrap.js | 1 + 1 file changed, 1 insertion(+) diff --git a/zephyr/static/third/bootstrap/js/bootstrap.js b/zephyr/static/third/bootstrap/js/bootstrap.js index dbb7eff191..8a33ae9d8f 100644 --- a/zephyr/static/third/bootstrap/js/bootstrap.js +++ b/zephyr/static/third/bootstrap/js/bootstrap.js @@ -1882,6 +1882,7 @@ items = $.isFunction(this.source) ? this.source(this.query, $.proxy(this.process, this)) : this.source + if (!items && this.shown) this.hide(); return items ? this.process(items) : this }