Backport bootstrap-typeahead click fix to make clicking on autocomplete more reliable

This is the patch described here:

https://github.com/twitter/bootstrap/issues/2715
92189b87ad

That commit has not been upstreamed to bootstrap due to bureaucracy issues.

(imported from commit 3c4a109b58f403569a41f5048ab347a800f029c2)
This commit is contained in:
Leo Franchi 2013-06-05 11:46:22 -04:00
parent 74f70f3915
commit b5cadeca73
1 changed files with 5 additions and 1 deletions

View File

@ -2028,7 +2028,11 @@
, blur: function (e) {
var that = this
setTimeout(function () { that.hide() }, 150)
setTimeout(function () {
if (!that.$menu.is(':hover')) {
that.hide();
}
}, 150)
}
, click: function (e) {