Browse Source

added close event. fixes #246

Igor Vaynberg 13 năm trước cách đây
mục cha
commit
37ff4bbf36
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      select2.js

+ 2 - 0
select2.js

@@ -844,6 +844,8 @@
             this.container.removeClass("select2-dropdown-open");
             this.results.empty();
             this.clearSearch();
+
+            this.opts.element.trigger(jQuery.Event("close"));
         },
 
         // abstract