Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andpor opened this issue Nov 15, 2023 · 0 comments

Comments

@andpor
Copy link

andpor commented Nov 15, 2023

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.

@andpor andpor changed the title Release 2.6.1 introduced a serious defect Release 2.8.3 introduced a serious defect Nov 15, 2023
@andpor andpor changed the title Release 2.8.3 introduced a serious defect Release 2.8.3 introduced a major Callapsible OPEN defect with lazyRender=true Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant