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 #6180

Closed
oluckyman opened this issue May 17, 2017 · 2 comments
Closed

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

oluckyman opened this issue May 17, 2017 · 2 comments

Comments

@oluckyman
Copy link

Version

2.10.0

Environment

osx Chrome 58

Reproduction link

http://codepen.io/anon/pen/OmwYeG?editors=001

Steps to reproduce

use Panel inside another component

What is expected?

Collapse should work

What is actually happening?

it makes broken HTML


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.

@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
None yet
Projects
None yet
Development

No branches or pull requests

2 participants