Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Korpel <marcel.korpel@gmail.com>2012-12-01 18:19:41 +0400
committerMarcel Korpel <marcel.korpel@gmail.com>2012-12-02 15:35:33 +0400
commit0dece7a71f4f3591c7d1fecb9dea7cba82c9624a (patch)
treef3327eb13d18a8a29e077fba6e39e21a9ca8ae51 /js/bootstrap-typeahead.js
parent3b3dd3ac3c7b69d02406ede69bffcc4ee8a1ed6b (diff)
Set focus back to input field after clicking an item
Test 'focus is still set' added Fixes issue #5933
Diffstat (limited to 'js/bootstrap-typeahead.js')
-rw-r--r--js/bootstrap-typeahead.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/bootstrap-typeahead.js b/js/bootstrap-typeahead.js
index 2f3dc274f9..4f333e8c23 100644
--- a/js/bootstrap-typeahead.js
+++ b/js/bootstrap-typeahead.js
@@ -263,6 +263,7 @@
e.stopPropagation()
e.preventDefault()
this.select()
+ this.$element.focus()
}
, mouseenter: function (e) {