소스 검색

clear the ' ' placeholder on open

Igor Vaynberg 13 년 전
부모
커밋
9c864f1da0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      select2.js

+ 2 - 0
select2.js

@@ -759,6 +759,8 @@
 
             if (!this.shouldOpen()) return false;
 
+            if (this.search.val() === " ") { this.search.val(""); }
+
             this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
             if(this.dropdown[0] !== this.body.children().last()[0]) {
 				// ensure the dropdown is the last child of body, so the z-index is always respected correctly