Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed Aug 31, 2016
1 parent 3b6e12e commit ead67e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1614,9 +1614,7 @@
if (that.options.liveSearch) {
if (/(^9$|27)/.test(e.keyCode.toString(10)) && isActive && that.$menu.find('.active').length === 0) {
e.preventDefault();
that.$menu.parent().removeClass('open');
if (that.options.container) that.$newElement.removeClass('open');
that.$button.focus();
that.$button.click().focus();
}
// $items contains li elements when liveSearch is enabled
$items = $('[role="listbox"] li' + selector, $parent);
Expand Down

0 comments on commit ead67e5

Please sign in to comment.