1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02: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

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)