From 10f47c6ff9b7ecbd077ef386b07c04d9096a63aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 18 Jun 2021 16:41:15 +0300 Subject: [PATCH] Fixed #1355 - DataTable row group and resizable column not working together --- src/components/datatable/DataTable.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index eddbd7c2e..8b53531b6 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -1095,12 +1095,14 @@ export default { for (let child of children) { for (let row of child.children) { let resizeCell = row.children[colIndex]; - resizeCell.style.flex = '0 0 ' + newColumnWidth + 'px'; + if (resizeCell) { + resizeCell.style.flex = '0 0 ' + newColumnWidth + 'px'; - if (this.columnResizeMode === 'fit') { - let nextCell = resizeCell.nextElementSibling; - if (nextCell) { - nextCell.style.flex = '0 0 ' + nextColumnWidth + 'px'; + if (this.columnResizeMode === 'fit') { + let nextCell = resizeCell.nextElementSibling; + if (nextCell) { + nextCell.style.flex = '0 0 ' + nextColumnWidth + 'px'; + } } } }