Skip to content


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

merged 1 commit into from

2 participants


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

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


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.relevant-dropdown.js
2 js/jquery.relevant-dropdown.js
@@ -106,7 +106,7 @@
// Watch arrow keys for up and down
$input.on("keydown", function(e) {
- var active = $(""),
+ var active = $datalist.find(""),
datalistHeight = $datalist.outerHeight(),
datalistItemsHeight = datalistItems.outerHeight();
Something went wrong with that request. Please try again.