djhvscf 6 years ago
parent
commit
5991daed69
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/reorder-columns/bootstrap-table-reorder-columns.js

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

@@ -135,7 +135,7 @@ BootstrapTable.prototype.makeRowsReorderable = function () {
         }
       }
 
-      for (let i = 0; i < this.length; i++ ) {
+      for (let i = 0; i < ths.length; i++ ) {
         columnIndex = that.fieldsColumnsIndex[ths[i]]
         if (columnIndex !== -1) {
           that.columns[columnIndex].fieldIndex = i