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

Memu内包含不是类型为Memu.Item的子节点 #8722

Closed
yanguoyu opened this issue Dec 25, 2017 · 3 comments
Closed

Memu内包含不是类型为Memu.Item的子节点 #8722

yanguoyu opened this issue Dec 25, 2017 · 3 comments

Comments

@yanguoyu
Copy link
Contributor

Version

2.13.11

Environment

mac osx 10.13.1 chrome 63.0.3239.84

Reproduction link

https://codesandbox.io/s/644vz1p46r

Steps to reproduce

1:在Menu中包含了不是Menu.Item的子节点。
2:会提示没有Menu需要的一些属性。例如:renderMenuItem、rootPrefixCls。

What is expected?

1:对存在于Menu内的非Menu的子节点分别处理,不去走menu的渲染流程。直接返回该子节点。

What is actually happening?

1:应该是对每个Menu的一级子节点都进行了Menu的渲染过程,导致很多props找不到。


这个并不是个bug,不影响Menu组件的使用,只是觉得有优化的可能性。

@ant-design-bot
Copy link
Contributor

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: #4897

@yanguoyu
Copy link
Contributor Author

yanguoyu commented Dec 25, 2017

need i open a new issues? @ant-design-bot

@yesmeck
Copy link
Member

yesmeck commented Dec 25, 2017

Duplicate of #4853

目前没有好的解决方案。

@yesmeck yesmeck closed this as completed Dec 25, 2017
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

3 participants