Skip to content
Browse files

Merge pull request #9 from Costo/patch-1

Find li.active items inside datalist only, instead of whole document.
  • Loading branch information...
2 parents 3a433b1 + b88cedd commit aa358b07658c54c23856f7ebe2ba5a016dea3940 @chriscoyier chriscoyier committed Feb 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.relevant-dropdown.js
View
2 js/jquery.relevant-dropdown.js
@@ -106,7 +106,7 @@
// Watch arrow keys for up and down
$input.on("keydown", function(e) {
- var active = $("li.active"),
+ var active = $datalist.find("li.active"),
datalistHeight = $datalist.outerHeight(),
datalistItemsHeight = datalistItems.outerHeight();

0 comments on commit aa358b0

Please sign in to comment.
Something went wrong with that request. Please try again.