DigitalRiver / react-atlas

Composable React components with CSS Modules.
http://digitalriver.github.io/react-atlas/
MIT License
38 stars 25 forks source link

Accordion: componentWillReceiveProps should test against this.props instead of this.state. #776

Closed Darper closed 6 years ago

Darper commented 6 years ago

Currently the Accordion is failing to function properly in the docs site. This is because cwrp is checking nextProps.children !== this.state.children, but this.state.children is undefined. This can be fixed by changing the conditional to nextProps.children !== this.props.children.

Darper commented 6 years ago

Duplicate of #768