ソースを参照

Fix how to add bootstrap-table object

djhvscf 5 年 前
コミット
5429bf71fd
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1862,7 +1862,7 @@ class BootstrapTable {
 
   trigger (_name, ...args) {
     const name = `${_name}.bs.table`
-    args[args.length - 1] = this
+    args[args.length] = this
     this.options[BootstrapTable.EVENTS[name]](...args)
     this.$el.trigger($.Event(name, { sender: this }), args)