Skip to content

Commit f211ccd

Browse files
authored
[Bug]: Fix scrollTop reest when scrolling horizontally in data table (#3206)
* [Bug]: Fix scrollTop reest when scrolling horizontally in data table Signed-off-by: Ritesh9876 <riteshmangdare@gmail.com> * [Style]: formatting Signed-off-by: Ritesh9876 <riteshmangdare@gmail.com> --------- Signed-off-by: Ritesh9876 <riteshmangdare@gmail.com>
1 parent b6aee95 commit f211ccd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/components/src/common/data-table

src/components/src/common/data-table/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ export const TableSection = ({
349349
height={headerGridProps.height + browserScrollBarWidth}
350350
width={headerGridWidth}
351351
scrollLeft={scrollLeft}
352-
onScroll={onScroll}
352+
onScroll={args => onScroll?.({...args, scrollTop:scrollTop ?? 0 })}
353353
/>
354354
</div>
355355
<div

0 commit comments

Comments
 (0)