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

[Bug]: React / Nested Rows / Nested row collapse status resets when props are passed from parent to child #10872

Open
jeong-hojeong opened this issue Mar 26, 2024 · 1 comment
Labels

Comments

@jeong-hojeong
Copy link

Describe the bug

Current Outcome:
When the child component re-renders due to prop change, the collapsed rows expand to default status.

Expected Outcome:
Collapsed rows should remain as collapsed.

Steps to reproduce:

  1. Collapse any of the nested row
  2. Click the + button
  3. Collapsed rows expand

Video/Screenshots

No response

Provide a link to the demo with the bug reproduction

https://jsfiddle.net/pLwtgvr4/1/

Handsontable version

14.2

Framework version

React v17

Your environment

Windows + Chrome

@AMBudnik
Copy link
Contributor

Thank you for sharing the issue report, @jeong-hojeong

It seems that the issue is not a regression. It works the same in older versions as well.

I will talk about that internally and get back to you as soon as we get any updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants