gregnb / gregnb/mui-datatables

2.5.1 > Table Loses Sort and Filter When Cell Value Is Changed

Open
#733 3 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

If you sort or filter the table before updating the contents of one of its rows, the table loses the sort and/or filter.

Downgrading to 2.5.0 does seem to resolve the issue.

## Expected Behavior
When I click on the switch to update its value, the table's current sort order and filters should not disappear.

## Current Behavior
Currently when changing a switch, the table's current sort order and filters are lost making it quite confusing as to which row actually got updated.

## Steps to Reproduce (for bugs)

Using https://codesandbox.io/embed/muidatatable-losessortfilterorder-1ey1v
1. Sort the Type field
2. Click on one of the Is Branded switches
3. Filter by Type
4. Click on one of the Is Branded switches

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | 4.1.3 |
| MUI-datatables | 2.5.1 |
| React | 16.8.6 |
| browser | Firefox, Chrome |
| etc | |

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.