forge
forge copied to clipboard
[table] expansion state is lost when data is updated
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:
- Expand a row in the table
- 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.