Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Descriptions.Item 外层嵌套 HOC 后无法正常显示 #32245

Closed
1 task done
zhangminggeek opened this issue Sep 22, 2021 · 1 comment
Closed
1 task done

Descriptions.Item 外层嵌套 HOC 后无法正常显示 #32245

zhangminggeek opened this issue Sep 22, 2021 · 1 comment

Comments

@zhangminggeek
Copy link

zhangminggeek commented Sep 22, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 引入 antd Descriptions 组件
  2. 定义一个 HOC 作为 Descriptions.Item 组件的 wrapper
  3. 在 Descriptions 中使用外部引入的 Descriptions.Item 组件

What is expected?

能正常显示外部引入的 Descriptions.Item 组件

What is actually happening?

Descriptions 中直接使用 Descriptions.Item 组件能正确显示,使用外部引入的组件无法正确显示

Environment Info
antd 4.16.13
React 17.0.2
System macOS
Browser chrome 93.0.4577.63
@afc163
Copy link
Member

afc163 commented Sep 22, 2021

Duplicate of #4853

@afc163 afc163 marked this as a duplicate of #4853 Sep 22, 2021
@afc163 afc163 closed this as completed Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants