Skip to content

Commit

Permalink
Merge pull request #2411 from tugcekucukoglu/colspan
Browse files Browse the repository at this point in the history
Fixed #2410 - DataTable v2 | Colspan defect with hidden Columns
  • Loading branch information
tugcekucukoglu authored Apr 8, 2022
2 parents 2eada79 + b8acfd8 commit 1289ed6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/datatable/TableBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,11 @@ 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 1289ed6

Please sign in to comment.