Fixed #3685 - DataTable: row group header colspan doesn't span full row when table has selection column

pull/4452/head
Tuğçe Küçükoğlu 2023-08-14 18:29:33 +03:00
parent 9fcfeb1029
commit 9b326cbb19
1 changed files with 1 additions and 0 deletions

View File

@ -511,6 +511,7 @@ export default {
let hiddenColLength = 0; let hiddenColLength = 0;
this.columns.forEach(column => { this.columns.forEach(column => {
if(this.columnProp(column, 'hidden')) hiddenColLength++; if(this.columnProp(column, 'hidden')) hiddenColLength++;
if (this.columnProp(column, 'selectionMode') === 'single'|| this.columnProp(column, 'selectionMode') === 'multiple') hiddenColLength--;
}); });
return this.columns ? this.columns.length - hiddenColLength : 0; return this.columns ? this.columns.length - hiddenColLength : 0;
}, },