Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@Costo

Because of this bug, the plugin doesn't work with Twitter Bootstrap

@chriscoyier chriscoyier merged commit aa358b0 into CSS-Tricks:master
@chriscoyier
Owner

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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();
Something went wrong with that request. Please try again.