Skip to content

Commit e5a2824

Browse files
committed
Merge pull request select2#377 from pmirshad/master
Tabbing out doesn't put placeholder back on input tags with multiple=true and no value selected
2 parents 3254f74 + 9fe2453 commit e5a2824

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

select2.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1865,8 +1865,11 @@
18651865

18661866
this.search.bind("keyup", this.bind(this.resizeSearch));
18671867

1868-
this.search.bind("blur", this.bind(function() {
1868+
this.search.bind("blur", this.bind(function(e) {
18691869
this.container.removeClass("select2-container-active");
1870+
this.search.removeClass("select2-focused");
1871+
this.clearSearch();
1872+
e.stopImmediatePropagation();
18701873
}));
18711874

18721875
this.container.delegate(selector, "mousedown", this.bind(function (e) {

0 commit comments

Comments
 (0)