Browse Source

Merge pull request #5263 from wenzhixin/fix/5262

Skip selection columns
文翼 5 years ago
parent
commit
c6171771b2
1 changed files with 3 additions and 0 deletions
  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!!