소스 검색

Merge pull request #377 from pmirshad/master

Tabbing out doesn't put placeholder back on input tags with multiple=true and no value selected
Igor Vaynberg 12 년 전
부모
커밋
e5a2824fae
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      select2.js

+ 4 - 1
select2.js

@@ -1865,8 +1865,11 @@
 
             this.search.bind("keyup", this.bind(this.resizeSearch));
 
-            this.search.bind("blur", this.bind(function() {
+            this.search.bind("blur", this.bind(function(e) {
                 this.container.removeClass("select2-container-active");
+                this.search.removeClass("select2-focused");
+                this.clearSearch();
+                e.stopImmediatePropagation();
             }));
 
             this.container.delegate(selector, "mousedown", this.bind(function (e) {