Explorar o código

postprocess results always if closeOnSelect is false. fixes #348

Igor Vaynberg %!s(int64=12) %!d(string=hai) anos
pai
achega
a145378848
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();