Description
Basic table tracks expanded rows by their index. When a row is expanded and the user triggers a data change (filtering/sorting/pagination), the table retains the expanded state based on the index. This leads to UI bugs and stale states, where the wrong row appears expanded after the data updates
We'd expect row expansion to be tied to an ID rather than the row index so that the state persists with the correct data item regardless of filtering/sorting/pagination or the expanded states to automatically reset when the data changes
Description
Basic table tracks expanded rows by their index. When a row is expanded and the user triggers a data change (filtering/sorting/pagination), the table retains the expanded state based on the index. This leads to UI bugs and stale states, where the wrong row appears expanded after the data updates
We'd expect row expansion to be tied to an ID rather than the row index so that the state persists with the correct data item regardless of filtering/sorting/pagination or the expanded states to automatically reset when the data changes