Skip to content

Commit 2bd67c7

Browse files
authored
Revert "fix: duplicate unique identifiers in MeasureRow column headers (#1376)" (#1377)
1 parent c58ee99 commit 2bd67c7

File tree

2 files changed

+3
-99
lines changed

2 files changed

+3
-99
lines changed

src/Body/MeasureRow.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import isVisible from '@rc-component/util/lib/Dom/isVisible';
55
import { useContext } from '@rc-component/context';
66
import TableContext from '../context/TableContext';
77
import type { ColumnType } from '../interface';
8-
import { prepareMeasureTitle } from '../utils/measureUtil';
98

109
export interface MeasureRowProps {
1110
prefixCls: string;
@@ -38,8 +37,9 @@ const MeasureRow: React.FC<MeasureRowProps> = ({
3837
{columnsKey.map(columnKey => {
3938
const column = columns.find(col => col.key === columnKey);
4039
const rawTitle = column?.title;
41-
const titleForMeasure = prepareMeasureTitle(rawTitle);
42-
40+
const titleForMeasure = React.isValidElement<React.RefAttributes<any>>(rawTitle)
41+
? React.cloneElement(rawTitle, { ref: null })
42+
: rawTitle;
4343
return (
4444
<MeasureCell
4545
key={columnKey}

src/utils/measureUtil.ts

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)