diff options
| author | vsn4ik <[email protected]> | 2014-09-23 13:19:15 +0400 |
|---|---|---|
| committer | vsn4ik <[email protected]> | 2014-09-23 13:19:15 +0400 |
| commit | bd66b12a94a8a73c364b63c7bf09737851f2c73c (patch) | |
| tree | b25b4797ecbba89cf728733387864d3f3669f2a3 | |
| parent | ccecb7cde4f954a8941100b24c1b0c2008088276 (diff) | |
| download | bootstrap-bd66b12a94a8a73c364b63c7bf09737851f2c73c.tar.xz bootstrap-bd66b12a94a8a73c364b63c7bf09737851f2c73c.zip | |
Use e.target instead :focus selector.
| -rw-r--r-- | js/dropdown.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/dropdown.js b/js/dropdown.js index 756fc21f5..ccdf1635f 100644 --- a/js/dropdown.js +++ b/js/dropdown.js @@ -77,7 +77,7 @@ if (!$items.length) return - var index = $items.index($items.filter(':focus')) + var index = $items.index(e.target) if (e.keyCode == 38 && index > 0) index-- // up if (e.keyCode == 40 && index < $items.length - 1) index++ // down |
