瀏覽代碼

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();
             }
         }
     });