Skip to content

Commit

Permalink
focus focusedParent (menuInner or searchbox) after selecting option i…
Browse files Browse the repository at this point in the history
…nstead of blur (#2474)
  • Loading branch information
caseyjhol committed Jun 2, 2020
1 parent 819205f commit a9f8afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -2468,7 +2468,7 @@
option.selected = !state;

that.setSelected(clickedIndex, !state);
$this.trigger('blur');
that.focusedParent.focus();

if (maxOptions !== false || maxOptionsGrp !== false) {
var maxReached = maxOptions < getSelectedOptions(element).length,
Expand Down

0 comments on commit a9f8afa

Please sign in to comment.