You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might not be a bug so much as user error, but if you render multiple:
import Collapse from 'react-collapse';
...
<Collapse isOpened={this.props.hidden}>
...
</Collapse>
in a list, and then click on one item in the list to trigger it to open, ALL of them will open. Not sure the best approach to get around this. Is there some option or some way where I can say if X is clicked then only open X and not Y and Z
The text was updated successfully, but these errors were encountered:
This seem like concern of your app. You define which Collapse is going to be opened or closed =). Collapse gets only one prop isOpened. You can have an array of those in your own component and do something like:
<div><CollapseisOpened={!this.props.hidden[0]}>
...
</Collapse><CollapseisOpened={!this.props.hidden[1]}>
...
</Collapse>
... and so on
</div>
This might not be a bug so much as user error, but if you render multiple:
in a list, and then click on one item in the list to trigger it to open, ALL of them will open. Not sure the best approach to get around this. Is there some option or some way where I can say if X is clicked then only open X and not Y and Z
The text was updated successfully, but these errors were encountered: