Skip to content

Commit 2e1e339

Browse files
Lukas742MarcusNotheis
authored andcommitted
fix(AnalyticalTable): Allow copy cell values in non-selectable mode (#210)
1 parent 58b708d commit 2e1e339

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/main/src/components/AnalyticalTable/hooks/useTableRowStyling.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@ export const useTableRowStyling = (classes, resizedColumns, selectable, selected
4545
if (selected) {
4646
className += ` ${classes.selectedRow}`;
4747
}
48+
if (selectable) {
49+
return {
50+
className,
51+
onClick: onRowClicked(row)
52+
};
53+
}
4854
return {
49-
className,
50-
onClick: onRowClicked(row)
55+
className
5156
};
5257
});
5358
return instance;

0 commit comments

Comments
 (0)