Skip to content

Commit bb99f75

Browse files
authored
🐛 FIX: virtual list direction aware (#1188)
1 parent f7c04ab commit bb99f75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/VirtualTable/BodyGrid.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const Grid = React.forwardRef<GridRef, GridProps>((props, ref) => {
2929
prefixCls,
3030
childrenColumnName,
3131
scrollX,
32+
direction,
3233
} = useContext(TableContext, [
3334
'flattenColumns',
3435
'onColumnResize',
@@ -37,6 +38,7 @@ const Grid = React.forwardRef<GridRef, GridProps>((props, ref) => {
3738
'expandedKeys',
3839
'childrenColumnName',
3940
'scrollX',
41+
'direction',
4042
]);
4143
const {
4244
sticky,
@@ -229,6 +231,7 @@ const Grid = React.forwardRef<GridRef, GridProps>((props, ref) => {
229231
itemKey={item => getRowKey(item.record)}
230232
component={wrapperComponent}
231233
scrollWidth={scrollX as number}
234+
direction={direction}
232235
onVirtualScroll={({ x }) => {
233236
onScroll({
234237
currentTarget: listRef.current?.nativeElement,

0 commit comments

Comments
 (0)