瀏覽代碼

improve placeholder management. fixes #712

Igor Vaynberg 12 年之前
父節點
當前提交
81a0e2610a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -2020,7 +2020,7 @@ the specific language governing permissions and limitations under the Apache Lic
             this.search.bind("blur", this.bind(function(e) {
             this.search.bind("blur", this.bind(function(e) {
                 this.container.removeClass("select2-container-active");
                 this.container.removeClass("select2-container-active");
                 this.search.removeClass("select2-focused");
                 this.search.removeClass("select2-focused");
-                this.clearSearch();
+                if (!this.opened()) this.clearSearch();
                 e.stopImmediatePropagation();
                 e.stopImmediatePropagation();
             }));
             }));