Skip to content

Commit

Permalink
Fixe bug with livesearch
Browse files Browse the repository at this point in the history
  • Loading branch information
t0xicCode committed Jan 19, 2015
1 parent c4860ac commit e9c9c90
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1153,10 +1153,10 @@
that.$menu.parent().removeClass('open');
that.$button.focus();
}
$items = $('[role=menu] li:not(.divider):not(.dropdown-header):visible', $parent);
$items = $('[role=menu] li:not(.divider):not(.dropdown-header):visible a', $parent);
if (!$this.val() && !/(38|40)/.test(e.keyCode.toString(10))) {
if ($items.filter('.active').length === 0) {
$items = that.$newElement.find('li');
$items = that.$newElement.find('li a');
if (that.options.liveSearchNormalize) {
$items = $items.filter(':a' + that._searchStyle() + '(' + normalizeToBase(keyCodeMap[e.keyCode]) + ')');
} else {
Expand Down
Loading

0 comments on commit e9c9c90

Please sign in to comment.