aboutsummaryrefslogtreecommitdiff
path: root/js/bootstrap-typeahead.js
diff options
context:
space:
mode:
authorPaul McLanahan <[email protected]>2012-11-09 11:48:21 -0500
committerPaul McLanahan <[email protected]>2012-11-13 11:00:34 -0500
commit6ec7c72e5b5152afb676c43ea57a51fb625f9ba2 (patch)
treeba88af1f8f34870b4238eb568b808f56c17297c1 /js/bootstrap-typeahead.js
parent54486de88c7774e83b66dd4d42885300c2692f67 (diff)
downloadbootstrap-6ec7c72e5b5152afb676c43ea57a51fb625f9ba2.tar.xz
bootstrap-6ec7c72e5b5152afb676c43ea57a51fb625f9ba2.zip
Fix issue with double move event firing in typeahead.
Fix test to catch issue. Fix #5806.
Diffstat (limited to 'js/bootstrap-typeahead.js')
-rw-r--r--js/bootstrap-typeahead.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-typeahead.js b/js/bootstrap-typeahead.js
index 512d91acb..26d845258 100644
--- a/js/bootstrap-typeahead.js
+++ b/js/bootstrap-typeahead.js
@@ -217,7 +217,7 @@
}
, keydown: function (e) {
- this.suppressKeyPressRepeat = !~$.inArray(e.keyCode, [40,38,9,13,27])
+ this.suppressKeyPressRepeat = ~$.inArray(e.keyCode, [40,38,9,13,27])
this.move(e)
}