gregnb / gregnb/mui-datatables

Sorting columns shifts header

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

Description

The fixedHeader option does not appear to work when you sort the columns of a table, even if you set the width. Shown here is an example: https://codesandbox.io/s/muidatatables-sorting-header-1tkh7. If you sort by the "Name" column, you'll see that the headers all shift, which is not good user experience.

Is there any way to fix the columns even if you are sorting, and truncate the parts of the string that are longer than the column's width? This was possible by default in the Table component in the original Material-UI.

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.