2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Dropdown: ignore keydown events coming from inputs and textareas

Fixes #15084.
This commit is contained in:
Heinrich Fenkart
2014-11-12 01:18:06 +01:00
parent 2006a435d9
commit 1d55ada581
2 changed files with 42 additions and 1 deletions
+1 -1
View File
@@ -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)