Skip to content

Commit

Permalink
fix(data-table): remove the incorrect fix of wrong col index
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Dec 29, 2024
1 parent dd2e4aa commit b96dce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data-table/src/TableParts/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b96dce5

Please sign in to comment.