Browse Source

Fix how to add bootstrap-table object

djhvscf 5 years ago
parent
commit
5429bf71fd
1 changed files with 1 additions and 1 deletions
  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)