Skip to content

Commit b42514b

Browse files
committed
🐛 numeric data showing title in cell
close ant-design/ant-design#23739
1 parent 1ee253c commit b42514b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cell/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ function Cell<RecordType extends DefaultRecordType>(
158158
// ====================== Render ======================
159159
let title: string;
160160
if (ellipsis) {
161-
if (typeof childNode === 'string') {
162-
title = childNode;
161+
if (typeof childNode === 'string' || typeof childNode === 'number') {
162+
title = childNode.toString();
163163
} else if (React.isValidElement(childNode) && typeof childNode.props.children === 'string') {
164164
title = childNode.props.children;
165165
}

0 commit comments

Comments
 (0)