浏览代码

fix onPostBody this context

zhangjin 5 年之前
父节点
当前提交
b780087bff
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
     }