Browse Source

fix select2 e2e test

Evan You 9 years ago
parent
commit
1fe9ba61d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/select2/index.html

+ 1 - 1
examples/select2/index.html

@@ -55,7 +55,7 @@
       watch: {
         value: function (value) {
           // update value
-          $(this.$el).select2('val', value)
+          $(this.$el).val(value).trigger('change')
         },
         options: function (options) {
           // update options