@@ -1373,6 +1373,8 @@ export const Cell = /*#__PURE__*/ createLeafComponent(TableCellNode, (props: Cel
13731373 let { isFocused, isFocusVisible, focusProps} = useFocusRing ( ) ;
13741374 let { hoverProps, isHovered} = useHover ( { } ) ;
13751375 let isSelected = cell . parentKey != null ? state . selectionManager . isSelected ( cell . parentKey ) : false ;
1376+ // colIndex is null, when there is so span, falling back to using the index
1377+ let colIndex = cell . colIndex || cell . index ;
13761378
13771379 let renderProps = useRenderProps ( {
13781380 ...props ,
@@ -1385,8 +1387,7 @@ export const Cell = /*#__PURE__*/ createLeafComponent(TableCellNode, (props: Cel
13851387 isHovered,
13861388 isSelected,
13871389 id : cell . key ,
1388- // colIndex is null, when there is so span, falling back to using the index
1389- colIndex : cell . colIndex || cell . index
1390+ colIndex
13901391 }
13911392 } ) ;
13921393
@@ -1400,7 +1401,8 @@ export const Cell = /*#__PURE__*/ createLeafComponent(TableCellNode, (props: Cel
14001401 data-focused = { isFocused || undefined }
14011402 data-focus-visible = { isFocusVisible || undefined }
14021403 data-pressed = { isPressed || undefined }
1403- data-selected = { isSelected || undefined } >
1404+ data-selected = { isSelected || undefined }
1405+ data-col-index = { colIndex } >
14041406 < CollectionRendererContext . Provider value = { DefaultCollectionRenderer } >
14051407 { renderProps . children }
14061408 </ CollectionRendererContext . Provider >
0 commit comments