gregnb / gregnb/mui-datatables

Prevent reseting/clearing some filters

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

Description

I need to add filters with default value that can't be reset, user must always select a value. So, I need to hide "Delete" button in some chips and when call "Reset" in the filters box, it shouldn't clear some columns.

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | 4.11.1 |
| MUI-datatables | 3.7.7 |
| React | 17.0.1 |
| browser | Chrome |

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or entry point is named. Start by reproducing the filter-chip and Reset behavior with the listed React and Material-UI versions, then trace the table's filter state and controls; done means protected filters retain their values and hide their Delete buttons while other filters still reset.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.