Permalink
Browse files

Fix mouse click bug on typeahead.

  • Loading branch information...
1 parent 34d38ad commit d7996feaa0bccc55ebddcdc1138a4f5e8b6d178d @zuhao committed Feb 23, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/assets/javascripts/bootstrap-typeahead.js
View
6 app/assets/javascripts/bootstrap-typeahead.js
@@ -254,7 +254,11 @@
var that = this
e.stopPropagation()
e.preventDefault()
- setTimeout(function () { that.hide() }, 150)
+ setTimeout(function () {
+ if (!that.$menu.is(':hover')) {
+ that.hide();
+ }
+ }, 150)
}
, click: function (e) {

0 comments on commit d7996fe

Please sign in to comment.