浏览代码

clear search when val() is called. closes #45 closes #46

Igor Vaynberg 13 年之前
父节点
当前提交
ee6f8975a6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      select2.js

+ 2 - 0
select2.js

@@ -1399,6 +1399,8 @@
                 this.setVal(data);
                 this.updateSelection(val);
             }
+
+            this.clearSearch();
         }
     });