Преглед изворни кода

clear search field when data() is used. #178

Igor Vaynberg пре 13 година
родитељ
комит
4ddcc52635
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      select2.js

+ 1 - 0
select2.js

@@ -1820,6 +1820,7 @@
                 ids = $.map(values, function(e) { return self.opts.id(e)});
                 this.setVal(ids);
                 this.updateSelection(values);
+                this.clearSearch();
             }
         }
     });