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

[table] expansion state is lost when data is updated #364

Open
DRiFTy17 opened this issue Aug 25, 2023 · 0 comments
Open

[table] expansion state is lost when data is updated #364

DRiFTy17 opened this issue Aug 25, 2023 · 0 comments
Labels

Comments

@DRiFTy17
Copy link
Collaborator

Describe the bug:
When using the expand row functionality in the table, if the data is updated (or the render() method is called) while a row is expanded the table will re-render completely and it won't leave the row expanded.

To Reproduce:
Steps to reproduce the behavior:

  1. Expand a row in the table
  2. Either reset the data property, sort a column, filter a column... etc. (anything that causes a re-render of the data) and the table will re-render completely without leaving the existing expanded rows open.

Expected behavior:
All rows that are currently expanded should retain their expansion state when the table is re-rendered.

Please complete the following information:

  • Forge version: ^2.0.0
  • I have searched existing issues before creating this report? Y
  • Browser: All
  • Platform: All
  • OS: All

Additional context:
We should also look at any other state that could be lost when this happens as well.

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

1 participant