Skip to content

Commit

Permalink
πŸ› FIX: virtual list direction aware (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedrowaihi authored Sep 6, 2024
1 parent f7c04ab commit bb99f75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/VirtualTable/BodyGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const Grid = React.forwardRef<GridRef, GridProps>((props, ref) => {
prefixCls,
childrenColumnName,
scrollX,
direction,
} = useContext(TableContext, [
'flattenColumns',
'onColumnResize',
Expand All @@ -37,6 +38,7 @@ const Grid = React.forwardRef<GridRef, GridProps>((props, ref) => {
'expandedKeys',
'childrenColumnName',
'scrollX',
'direction',
]);
const {
sticky,
Expand Down Expand Up @@ -229,6 +231,7 @@ const Grid = React.forwardRef<GridRef, GridProps>((props, ref) => {
itemKey={item => getRowKey(item.record)}
component={wrapperComponent}
scrollWidth={scrollX as number}
direction={direction}
onVirtualScroll={({ x }) => {
onScroll({
currentTarget: listRef.current?.nativeElement,
Expand Down

0 comments on commit bb99f75

Please sign in to comment.