From 8db6f9c1800f3a30c52041c9d2cb8ffb045dc7b6 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 19 Dec 2023 15:12:31 +0000 Subject: [PATCH] Fixed #3967 - DataTable:When using ColumnGroup in a table with more than two frozen columns --- components/lib/datatable/HeaderCell.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/lib/datatable/HeaderCell.vue b/components/lib/datatable/HeaderCell.vue index adcf7aa16..d5600f4ec 100644 --- a/components/lib/datatable/HeaderCell.vue +++ b/components/lib/datatable/HeaderCell.vue @@ -294,8 +294,10 @@ export default { if (filterRow) { let index = DomHandler.index(this.$el); - filterRow.children[index].style.left = this.styleObject.left; - filterRow.children[index].style.right = this.styleObject.right; + if (filterRow.children[index]) { + filterRow.children[index].style.left = this.styleObject.left; + filterRow.children[index].style.right = this.styleObject.right; + } } } },