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 e76ef43 commit 0afe104Copy full SHA for 0afe104
src/Cell/index.tsx
@@ -156,8 +156,8 @@ function Cell<RecordType extends DefaultRecordType>(
156
// ====================== Render ======================
157
let title: string;
158
if (ellipsis) {
159
- if (typeof childNode === 'string') {
160
- title = childNode;
+ if (typeof childNode === 'string' || typeof childNode === 'number') {
+ title = childNode.toString();
161
} else if (React.isValidElement(childNode) && typeof childNode.props.children === 'string') {
162
title = childNode.props.children;
163
}
0 commit comments