diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 1212f448d6..a94830764d 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -388,7 +388,7 @@ export default { } }, mounted() { - if (this.scrollable && this.scrollDirection !== 'vertical') { + if (this.scrollable && (this.scrollDirection !== 'vertical' || this.rowGroupMode === 'subheader')) { this.updateScrollWidth(); } @@ -409,7 +409,7 @@ export default { this.saveState(); } - if (this.scrollable && this.scrollDirection !== 'vertical') { + if (this.scrollable && (this.scrollDirection !== 'vertical' || this.rowGroupMode === 'subheader')) { this.updateScrollWidth(); } },