Browse Source

Added check if column is visible on cardView

Dustin Utecht 3 years ago
parent
commit
6007bc3bf6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -2364,7 +2364,7 @@ class BootstrapTable {
     for (const field of this.header.fields) {
       const column = this.columns[this.fieldsColumnsIndex[field]]
 
-      if (!column || !column.visible) {
+      if (!column || !column.visible || (this.options.cardView && !column.cardVisible)) {
         continue
       }
       visibleFields.push(field)