Skip to content

Commit 0afe104

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

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
@@ -156,8 +156,8 @@ function Cell<RecordType extends DefaultRecordType>(
156156
// ====================== Render ======================
157157
let title: string;
158158
if (ellipsis) {
159-
if (typeof childNode === 'string') {
160-
title = childNode;
159+
if (typeof childNode === 'string' || typeof childNode === 'number') {
160+
title = childNode.toString();
161161
} else if (React.isValidElement(childNode) && typeof childNode.props.children === 'string') {
162162
title = childNode.props.children;
163163
}

0 commit comments

Comments
 (0)