Browse Source

Fixed id redeclaration bug using fixed-column extension

zhixin 4 years ago
parent
commit
c2308b8ac2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/extensions/fixed-columns/bootstrap-table-fixed-columns.js

+ 1 - 0
src/extensions/fixed-columns/bootstrap-table-fixed-columns.js

@@ -225,6 +225,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
     const initFixedBody = ($fixedColumns, $fixedHeader) => {
       $fixedColumns.find('.fixed-table-body').remove()
       $fixedColumns.append(this.$tableBody.clone(true))
+      $fixedColumns.find('.fixed-table-body table').removeAttr('id')
 
       const $fixedBody = $fixedColumns.find('.fixed-table-body')