瀏覽代碼

trigger blur handlers on source element when select2 is blurred

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

+ 1 - 0
select2.js

@@ -1297,6 +1297,7 @@
             if (this.search[0] === document.activeElement) { this.search.blur(); }
             this.clearSearch();
             this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
+            this.opts.element.triggerHandler("blur");
         },
 
         // abstract