Skip to content

Commit

Permalink
fix: rendering glitch solved
Browse files Browse the repository at this point in the history
mguellsegarra committed Sep 21, 2024
1 parent ccdb564 commit 23b0c2a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/InfiniteTable/InfiniteTable.tsx
Original file line number Diff line number Diff line change
@@ -415,6 +415,12 @@ const InfiniteTableComp = forwardRef<InfiniteTableRef, InfiniteTableProps>(
[getAllNodeKeys, onRowSelectionChange, selectedRowKeys],
);

const rowStyle = useMemo(() => {
return {
cursor: "pointer",
};
}, []);

return (
<div
style={{
@@ -432,9 +438,7 @@ const InfiniteTableComp = forwardRef<InfiniteTableRef, InfiniteTableProps>(
ref={gridRef}
columnDefs={colDefs}
onRowDoubleClicked={memoizedOnRowDoubleClick}
rowStyle={{
cursor: onRowDoubleClick ? "pointer" : "auto",
}}
rowStyle={rowStyle}
getRowStyle={onRowStyle}
suppressCellFocus={true}
suppressRowClickSelection={true}

0 comments on commit 23b0c2a

Please sign in to comment.