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