소스 검색

postprocess results always if closeOnSelect is false. fixes #348

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

+ 1 - 1
select2.js

@@ -2023,7 +2023,7 @@
         // multi
         onSelect: function (data) {
             this.addSelectedChoice(data);
-            if (this.select) { this.postprocessResults(); }
+            if (this.select || !this.opts.closeOnSelect) this.postprocessResults();
 
             if (this.opts.closeOnSelect) {
                 this.close();