@@ -591,6 +591,7 @@ export const TableHeader = /*#__PURE__*/ createBranchComponent(
591
591
< THead
592
592
{ ...mergeProps ( filterDOMProps ( props as any , { propNames : tableHeaderPropNames } ) , rowGroupProps , hoverProps ) }
593
593
{ ...renderProps }
594
+ onScroll = { props . onScroll }
594
595
ref = { ref }
595
596
data-hovered = { isHovered || undefined } >
596
597
{ headerRows }
@@ -904,9 +905,7 @@ export const ColumnResizer = forwardRef(function ColumnResizer(props: ColumnResi
904
905
) ;
905
906
} ) ;
906
907
907
- const tableBodyPropNames = new Set ( [ 'onScroll' ] ) ;
908
-
909
- export interface TableBodyRenderProps extends Pick < React . HTMLAttributes < HTMLTableSectionElement > , 'onScroll' > {
908
+ export interface TableBodyRenderProps {
910
909
/**
911
910
* Whether the table body has no rows and should display its empty state.
912
911
* @selector [data-empty]
@@ -919,7 +918,7 @@ export interface TableBodyRenderProps extends Pick<React.HTMLAttributes<HTMLTabl
919
918
isDropTarget : boolean
920
919
}
921
920
922
- export interface TableBodyProps < T > extends Omit < CollectionProps < T > , 'disabledKeys' > , StyleRenderProps < TableBodyRenderProps > {
921
+ export interface TableBodyProps < T > extends Omit < CollectionProps < T > , 'disabledKeys' > , StyleRenderProps < TableBodyRenderProps > , Pick < React . HTMLAttributes < HTMLTableSectionElement > , 'onScroll' > {
923
922
/** Provides content to display when there are no rows in the table. */
924
923
renderEmptyState ?: ( props : TableBodyRenderProps ) => ReactNode
925
924
}
@@ -981,8 +980,9 @@ export const TableBody = /*#__PURE__*/ createBranchComponent('tablebody', <T ext
981
980
// call useLoadMore here and walk up the DOM to the nearest scrollable element to set scrollRef
982
981
return (
983
982
< TBody
984
- { ...mergeProps ( filterDOMProps ( props as any , { propNames : tableBodyPropNames } ) , rowGroupProps ) }
983
+ { ...mergeProps ( filterDOMProps ( props as any ) , rowGroupProps ) }
985
984
{ ...renderProps }
985
+ onScroll = { props . onScroll }
986
986
ref = { ref }
987
987
data-empty = { isEmpty || undefined } >
988
988
{ isDroppable && < RootDropIndicator /> }
@@ -995,16 +995,14 @@ export const TableBody = /*#__PURE__*/ createBranchComponent('tablebody', <T ext
995
995
) ;
996
996
} ) ;
997
997
998
- const rowPropNames = new Set ( [ 'onContextMenu' ] ) ;
999
-
1000
998
export interface RowRenderProps extends ItemRenderProps {
1001
999
/** Whether the row's children have keyboard focus. */
1002
1000
isFocusVisibleWithin : boolean ,
1003
1001
/** The unique id of the row. */
1004
1002
id ?: Key
1005
1003
}
1006
1004
1007
- export interface RowProps < T > extends StyleRenderProps < RowRenderProps > , LinkDOMProps , HoverEvents , Pick < React . HTMLAttributes < HTMLTableRowElement > , 'onContextMenu' > {
1005
+ export interface RowProps < T > extends StyleRenderProps < RowRenderProps > , LinkDOMProps , HoverEvents {
1008
1006
/** A list of columns used when dynamically rendering cells. */
1009
1007
columns ?: Iterable < T > ,
1010
1008
/** The cells within the row. Supports static items or a function for dynamic rendering. */
@@ -1118,7 +1116,7 @@ export const Row = /*#__PURE__*/ createBranchComponent(
1118
1116
</ TR >
1119
1117
) }
1120
1118
< TR
1121
- { ...mergeProps ( filterDOMProps ( props as any , { propNames : rowPropNames } ) , rowProps , focusProps , hoverProps , draggableItem ?. dragProps , focusWithinProps ) }
1119
+ { ...mergeProps ( filterDOMProps ( props as any ) , rowProps , focusProps , hoverProps , draggableItem ?. dragProps , focusWithinProps ) }
1122
1120
{ ...renderProps }
1123
1121
ref = { ref }
1124
1122
data-disabled = { states . isDisabled || undefined }
0 commit comments