-
Couldn't load subscription status.
- Fork 150
Description
Describe the bug
We open ALL nested individual panels in the hierarchy of one collapsible. With version 2.8.3 the first time component is rendered all individual panels do not expand - height is 0. What is interesting is that the trigger component is rendered properly and indicates that collapsible is expanded - the child however is not rendered on the first go at all.We render all instances of Collapsible with lazyRender={true). If we change this to lazyRender={false} issue goes away however we do not want any instances of Collapsible to render if they are in collapsed state so this is not a solution. Issue does not exist in 2.8.0. The culprit seems to be the change related to PR #178 in the context of lazyRender=true. If the check prevState.height != 0 is removed issue goes away.
To Reproduce
Create a basic collapsible tree and programmatically set each component state to open
Expected behavior
Before version 2.8.0 everything was opening properly
Screenshots
The height style property set to 0 is the culprit - when I comment it out the component appears fine.

Additional context
Add any other context about the problem here.