Skip to content

Commit 2027c0c

Browse files
committed
trigger blur handlers on source element when select2 is blurred
1 parent 93ed30d commit 2027c0c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

select2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,7 @@
12971297
if (this.search[0] === document.activeElement) { this.search.blur(); }
12981298
this.clearSearch();
12991299
this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
1300+
this.opts.element.triggerHandler("blur");
13001301
},
13011302

13021303
// abstract

0 commit comments

Comments
 (0)