djhvscf 6 years ago
parent
commit
5991daed69

+ 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]]
         columnIndex = that.fieldsColumnsIndex[ths[i]]
         if (columnIndex !== -1) {
         if (columnIndex !== -1) {
           that.columns[columnIndex].fieldIndex = i
           that.columns[columnIndex].fieldIndex = i