Parcourir la source

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

Igor Vaynberg il y a 13 ans
Parent
commit
ee6f8975a6
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      select2.js

+ 2 - 0
select2.js

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