semi-design icon indicating copy to clipboard operation
semi-design copied to clipboard

[Typography] copyable={{content:string}} should not show warning.

Open DaiQiangReal opened this issue 3 years ago • 0 comments

Which Component 出现bug的组件

  • Typography

semi-ui version

  • latest

Expected result 期望的结果是什么

  • Typography pass copyable={{content:string}} to props should not show warning. Warning: Children in Typography is a object, it will case a [object Object] mistake when copy to clipboard.

Actual result 实际的结果是什么

  • Warning shows

Steps to reproduce 复现步骤

  • 1

Reproducible code 复现代码

  ()=><Typography.Paragraph copyable={{ content: 'Hello, Semi Design!' }}>点击复<div/>制文本。</Typography.Paragraph> 

Additional information 补充说明

  • 遇到这个bug的业务场景、上下文、或者你的需求场景

DaiQiangReal avatar Jan 27 '22 11:01 DaiQiangReal