diff options
| author | Heinrich Fenkart <[email protected]> | 2014-10-23 06:13:46 +0200 |
|---|---|---|
| committer | Heinrich Fenkart <[email protected]> | 2014-10-23 06:13:46 +0200 |
| commit | fe511484343064a344d64cfedd5b10bfb2409823 (patch) | |
| tree | 454c7b83b087b31be84edfcea68263eabd461c47 /js | |
| parent | e0cea19cbc8a22d6d576a773028cf89519e40901 (diff) | |
| parent | bd66b12a94a8a73c364b63c7bf09737851f2c73c (diff) | |
| download | bootstrap-fe511484343064a344d64cfedd5b10bfb2409823.tar.xz bootstrap-fe511484343064a344d64cfedd5b10bfb2409823.zip | |
Merge pull request #14669 from vsn4ik/dropdown_event_target
Use e.target instead :focus selector.
Diffstat (limited to 'js')
| -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 8fa712775..7388f8124 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.which == 38 && index > 0) index-- // up if (e.which == 40 && index < $items.length - 1) index++ // down |
