diff --git a/src/components/InfiniteTable/InfiniteTable.tsx b/src/components/InfiniteTable/InfiniteTable.tsx index 040676a..b32062c 100644 --- a/src/components/InfiniteTable/InfiniteTable.tsx +++ b/src/components/InfiniteTable/InfiniteTable.tsx @@ -61,6 +61,7 @@ export type InfiniteTableProps = Omit< onRowStatus?: (item: any) => any; statusComponent?: (status: any) => ReactNode; strings?: Record; + showPointerCursorInRows?: boolean; }; export type InfiniteTableRef = { @@ -91,6 +92,7 @@ const InfiniteTableComp = forwardRef( statusComponent, hasStatusColumn = false, strings = {}, + showPointerCursorInRows = true, } = props; const gridRef = useRef(null); @@ -478,9 +480,9 @@ const InfiniteTableComp = forwardRef( const rowStyle = useMemo(() => { return { - cursor: "pointer", + cursor: showPointerCursorInRows ? "pointer" : "default", }; - }, []); + }, [showPointerCursorInRows]); return (