瀏覽代碼

fix select2 e2e test

Evan You 9 年之前
父節點
當前提交
1fe9ba61d7
共有 1 個文件被更改,包括 1 次插入1 次删除
  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