Skip to content

Commit a9f8afa

Browse files
committed
focus focusedParent (menuInner or searchbox) after selecting option instead of blur (#2474)
1 parent 819205f commit a9f8afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/bootstrap-select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2468,7 +2468,7 @@
24682468
option.selected = !state;
24692469

24702470
that.setSelected(clickedIndex, !state);
2471-
$this.trigger('blur');
2471+
that.focusedParent.focus();
24722472

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

0 commit comments

Comments
 (0)