gregnb / gregnb/mui-datatables

Column labels are being converted into upper case

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

Description

Column labels are being converted to upper case. It is very random, though. Some label are not being converted.
```
const columns = [
{
name: 'id',
label: 'Id',
options: {
display: false,
filter: true,
sort: true,
},
},

{
name: 'photo',
label: 'Photo',
options: {
filter: false,
sort: true,
customBodyRender: (value) => ,
},
},
{
name: 'studentName',
label: 'Student',
options: {
filter: true,
sort: true,
},
},
{
name: 'phone',
label: 'Phone',
options: {
filter: true,
sort: true,
},
},

{
name: 'course',
label: 'COURSE',
options: {
filter: false,
sort: false,
},
},
{
name: 'enrolledOn',
label: 'Admission Date',
options: {
filter: false,
sort: true,
},
},
{
name: 'paidFees',
label: 'Paid Fees',
options: {
filter: true,
sort: true,
},
},
{
name: 'dueFees',
label: 'Due Fees',
options: {
filter: true,
sort: false,
},
},
];


```
[Image](https://i.postimg.cc/GhmnTggQ/Screenshot-2022-06-07-at-5-03-54-PM.png)

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | 5.5.3 |
| MUI-datatables | 4.2.2 |
| React | ^18.0.0 |

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with the supplied columns example in the reported Material-UI 5.5.3, MUI-datatables 4.2.2, and React 18 environment, then trace how column labels are rendered. Done means labels such as “Id”, “Photo”, “Student”, and “Admission Date” consistently retain their configured casing rather than being converted to uppercase.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.