styleguide
styleguide copied to clipboard
[Table] Bulk row selection on filtered data
Describe the bug When we select table rows of a filtered table and then remove the filter, the selected rows change.
As of this moment the table is selecting its data based on the row number showing on the screen. When we use filters (pagination, also) that "row number" changes causing the bug.
To Reproduce Steps to reproduce the behavior:
- Go to a table that has filters and bulk actions turned on
- Execute a filter that changes the position of any row in the table
- Select that row
- Clear the filter (or change it in a way that the selected row "moves")
- See that the selected row changes.
Expected behavior Maintain the originally selected row.
Screenshots
Additional context The solution for this could (and should?) be extended to pagination.