ソースを参照

Skip selection columns

Dustin Utecht 5 年 前
コミット
a84b084a23
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/extensions/cookie/bootstrap-table-cookie.js

+ 3 - 0
src/extensions/cookie/bootstrap-table-cookie.js

@@ -469,6 +469,9 @@ $.BootstrapTable = class extends $.BootstrapTable {
     if (columnsCookie) {
       for (const column of this.columns) {
         column.visible = columnsCookie.filter((columnField) => {
+          if (this.isSelectionColumn(column)) {
+            return true
+          }
           /**
            * This is needed for the old saved cookies or the table will show no columns!
            * It can be removed in 2-3 Versions Later!!