Browse Source

Update src/extensions/reorder-rows/bootstrap-table-reorder-rows.js

Co-authored-by: 文翼 <wenzhixin2010@gmail.com>
Sheikh Abdul Manan 2 years ago
parent
commit
8d34bf8f01
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/extensions/reorder-rows/bootstrap-table-reorder-rows.js

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

@@ -98,7 +98,8 @@ $.BootstrapTable = class extends $.BootstrapTable {
   onDrop (table) {
     this.$draggingTd.css('cursor', '')
     const pageNum = $(table).bootstrapTable('getOptions').pageNumber;
-    const pageSize = $(table).bootstrapTable('getOptions').pageSize;
+    const pageNum = this.options.pageNumber
+    const pageSize = this.options.pageSize
     const newData = []
 
     for (let i = 0; i < table.tBodies[0].rows.length; i++) {