Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Find li.active items inside datalist only, instead of whole document.

  • Loading branch information...
commit b88cedd17894a82f3cc5297a669f3e0f7f70c9d8 1 parent 3a433b1
@Costo authored
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();
Please sign in to comment.
Something went wrong with that request. Please try again.