nkbt / react-collapse

Component-wrapper for collapse animation with react-motion for elements with variable (and dynamic) height
MIT License
1.12k stars 113 forks source link

Initial animation is not skipped in nested collapses #215

Closed ardcore closed 4 years ago

ardcore commented 6 years ago

Hi,

Here's a pen: https://codepen.io/anon/pen/MQabej?editors=1010 -- as you can observe, the outer Collapse is rendered without the initial animation, but the nested one is animated, even though isOpened is set to true the component is initialised.

nkbt commented 4 years ago

As new react-collapse@5.0.0 is released https://github.com/nkbt/react-collapse/releases/tag/v5.0.0 this issue has been most likely already solved.

Please feel free to re-open if the issue persists