Commit fe511484 authored by Heinrich Fenkart's avatar Heinrich Fenkart

Merge pull request #14669 from vsn4ik/dropdown_event_target

Use e.target instead :focus selector.
parents e0cea19c bd66b12a
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
if (!$items.length) return 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 == 38 && index > 0) index-- // up
if (e.which == 40 && index < $items.length - 1) index++ // down if (e.which == 40 && index < $items.length - 1) index++ // down
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment