We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c534bc commit e2ee887Copy full SHA for e2ee887
src/Body/MeasureRow.tsx
@@ -37,11 +37,8 @@ const MeasureRow: React.FC<MeasureRowProps> = ({
37
{columnsKey.map(columnKey => {
38
const column = columns.find(col => col.key === columnKey);
39
const rawTitle = column?.title;
40
- const titleForMeasure = React.isValidElement(rawTitle)
41
- ? React.cloneElement(
42
- rawTitle as React.ReactElement<any & React.RefAttributes<typeof rawTitle>>,
43
- { ref: null },
44
- )
+ const titleForMeasure = React.isValidElement<React.RefAttributes<any>>(rawTitle)
+ ? React.cloneElement(rawTitle, { ref: null })
45
: rawTitle;
46
return (
47
<MeasureCell
0 commit comments