gregnb / gregnb/mui-datatables

columns moving when clicking the column header for sorting

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

Description

When I click on the table headers (which toggles ascending and descending sort) the table columns move, is it the expected behavior or a bug, I have recreated the issue in the code sandbox I'm sharing, try clicking on the last column...
clicking on the first column resets the change for some reason...
https://codesandbox.io/s/hidden-firefly-wt5m1?file=/src/App.js

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the linked CodeSandbox at src/App.js and reproduce the issue by sorting with the last column, then clicking the first column to compare the behavior. Trace the table's sorting and column layout from that reproduction; done means sorting headers no longer cause columns to move unexpectedly, with the behavior verified for ascending and descending sorts.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.