aboutsummaryrefslogtreecommitdiff
path: root/js/dropdown.js
diff options
context:
space:
mode:
authorHeinrich Fenkart <[email protected]>2014-11-12 01:18:06 +0100
committerHeinrich Fenkart <[email protected]>2014-11-12 02:01:25 +0100
commit1d55ada581e2e669cc7c163dc469b9184bbd8f7d (patch)
tree987a83964704f63f9c7b547108f336e2e23d12e3 /js/dropdown.js
parent2006a435d98b51a8d8430abe14ac3611113c2dff (diff)
downloadbootstrap-1d55ada581e2e669cc7c163dc469b9184bbd8f7d.tar.xz
bootstrap-1d55ada581e2e669cc7c163dc469b9184bbd8f7d.zip
Dropdown: ignore keydown events coming from `input`s and `textarea`s
Fixes #15084.
Diffstat (limited to 'js/dropdown.js')
-rw-r--r--js/dropdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/dropdown.js b/js/dropdown.js
index ae192e570..64ec34d5d 100644
--- a/js/dropdown.js
+++ b/js/dropdown.js
@@ -55,7 +55,7 @@
}
Dropdown.prototype.keydown = function (e) {
- if (!/(38|40|27|32)/.test(e.which)) return
+ if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return
var $this = $(this)