Browse Source

Merge pull request #5018 from Zhangjin1993/develop

fix onPostBody this context
文翼 5 years ago
parent
commit
afc7ccab86
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 = () => {
     this.options.onPostBody = () => {
       setTimeout(() => {
       setTimeout(() => {
         this.makeRowsReorderable()
         this.makeRowsReorderable()
-        onPostBody.apply()
+        onPostBody.call(this.options, this.options.data)
       }, 1)
       }, 1)
     }
     }