From b96dce5885271a72655f9f438f7384275643b7bf Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Sun, 29 Dec 2024 22:36:11 +0800 Subject: [PATCH] fix(data-table): remove the incorrect fix of wrong col index --- src/data-table/src/TableParts/Body.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data-table/src/TableParts/Body.tsx b/src/data-table/src/TableParts/Body.tsx index 9c98f0f3e89..2674c69913c 100644 --- a/src/data-table/src/TableParts/Body.tsx +++ b/src/data-table/src/TableParts/Body.tsx @@ -785,8 +785,8 @@ export default defineComponent({ const virtualXRowHeight = isVirtualX ? pxfy(heightForRow?.(rowData, actualRowIndex) || minRowHeight) : undefined - const cells = iteratedCols.map((col, colIdx) => { - const colIndex = isVirtualX ? col.index : colIdx + const cells = iteratedCols.map((col) => { + const colIndex = col.index if (displayedRowIndex in cordToPass) { const cordOfRowToPass = cordToPass[displayedRowIndex] const indexInCordOfRowToPass