]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use e.target instead :focus selector. 14669/head
authorvsn4ik <vsn4ik@gmail.com>
Tue, 23 Sep 2014 09:19:15 +0000 (13:19 +0400)
committervsn4ik <vsn4ik@gmail.com>
Tue, 23 Sep 2014 09:19:15 +0000 (13:19 +0400)
js/dropdown.js

index 756fc21f55e8caf5f61810148d1bbd02753232e2..ccdf1635f621776aa826fd04e0d666cb4af36b58 100644 (file)
@@ -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