diff --git a/components/transfer/item.tsx b/components/transfer/item.tsx index a4124d64ca..d10a244ca6 100644 --- a/components/transfer/item.tsx +++ b/components/transfer/item.tsx @@ -16,10 +16,15 @@ export default class Item extends React.Component { [`${prefixCls}-content-item-disabled`]: item.disabled, }); + let title: string | undefined = undefined; + if (typeof renderedText === 'string' || typeof renderedText === 'number') { + title = String(renderedText); + } + const listItem = (
  • onClick(item)} >