Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol authored and avantika-gupta-jtg committed May 14, 2020
1 parent 0bb2ab0 commit d7eb82c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@
if (e.currentTarget == this) {
e.preventDefault();
e.stopPropagation();
if (that.options.liveSearch) {
if (that.options.liveSearch && !$(e.target).hasClass('close')) {
that.$searchbox.focus();
} else {
that.$button.focus();
Expand All @@ -927,7 +927,7 @@
});

this.$menu.on('click', '.popover-title .close', function () {
that.$button.focus();
that.$button.click();
});

this.$searchbox.on('click', function (e) {
Expand Down

0 comments on commit d7eb82c

Please sign in to comment.