Skip to content

Release 2.8.3 introduced a major Callapsible OPEN defect with lazyRender=true #252

@andpor

Description

@andpor

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.
image

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions