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

Collapse does not work when Panel is inside another component #6179

Closed
oluckyman opened this issue May 17, 2017 · 3 comments · Fixed by react-component/collapse#236
Closed
Labels

Comments

@oluckyman
Copy link

oluckyman commented May 17, 2017

Example:

<Collapse>
  { items.map(item => <Item name={item.name} />) }
</Collapse>
const Item = ({ name }) => <Panel header={name} key={name}>...</Panel>;

It does not work.
It produces this HTML:
image
So it’s impossible to separate concerns between List component and List item components.

@ant-design-bot
Copy link
Contributor

Hello @oluckyman, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

@benjycui
Copy link
Contributor

Trace: #4853

@lock
Copy link

lock bot commented May 17, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants