Skip to content

Commit

Permalink
Fixed #2310 - Colspan defect with hidden Columns
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Mar 14, 2022
1 parent a29f3d7 commit 30e08a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/datatable/TableBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,13 @@ export default {
},
computed: {
columnsLength() {
return this.columns ? this.columns.length : 0;
let hiddenColLength = 0;
this.columns.forEach(column => {
if(this.columnProp(column, 'hidden')) hiddenColLength++;
});
return this.columns ? this.columns.length - hiddenColLength : 0;
},
rowGroupHeaderStyle() {
if (this.scrollable) {
Expand Down

0 comments on commit 30e08a9

Please sign in to comment.