gregnb / gregnb/mui-datatables

sortThirdClickReset doesn't work in global option, only per column option

Open
#2,049 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

sortThirdClickReset: true

Doesn't work in global option:
const options = {
sortThirdClickReset: true
}

Only works per column option:
const columns = [
{name:"name", label: 'Name', options:{sortThirdClickReset: true}},
{name:"address", label: 'Address'}
];

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how sortThirdClickReset is read from the global options object versus individual column options, using the provided MUIDataTable examples to reproduce the difference. Done means sortThirdClickReset: true in the global options resets sorting on the third click for columns that do not define their own setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.