mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +01:00
Use e.target instead :focus selector.
This commit is contained in:
parent
ccecb7cde4
commit
bd66b12a94
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user