Browse Source

fix onPostBody this context

zhangjin 5 years ago
parent
commit
b780087bff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/reorder-rows/bootstrap-table-reorder-rows.js

+ 1 - 1
src/extensions/reorder-rows/bootstrap-table-reorder-rows.js

@@ -45,7 +45,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
     this.options.onPostBody = () => {
       setTimeout(() => {
         this.makeRowsReorderable()
-        onPostBody.apply()
+        onPostBody.call(this.options, this.options.data)
       }, 1)
     }