ソースを参照

fix onPostBody this context

zhangjin 5 年 前
コミット
b780087bff

+ 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)
     }