gregnb / gregnb/mui-datatables

Applying filter removes Columns from View Columns

Open
#1,874 1 comment 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

## Expected Behavior
I want all Columns selected in View Columns to stay wether I filter or not.

## Current Behavior
If I have selected Columns to be shown through View columns (columns that have option display: false) and apply a filter my selected View Columns are resetted to default layout. Same goes if I search. So all manipulation of data will rerender Columns.

## Steps to Reproduce (for bugs)
1. Select a Column to be shown from View Columns
2. Filter or Search
3. Selected Columns have been resetted to default layout

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | 5.2.7 |
| MUI-datatables | 3.7.8 |
| React | 17.0.2 |

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.