forge icon indicating copy to clipboard operation
forge copied to clipboard

[table] expansion state is lost when data is updated

Open DRiFTy17 opened this issue 1 year ago • 0 comments

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.

DRiFTy17 avatar Aug 25 '23 17:08 DRiFTy17