ソースを参照

Fixed id redeclaration bug using fixed-column extension

zhixin 4 年 前
コミット
c2308b8ac2

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