Open ktriek opened 1 week ago
I usually assume that the sorting features should be turned off in MRT if you are enabling row ordering
Yeah, that's what I understood from the storybooks, but we have this requirement, the users can sort by columns headers or customize the order(DnD).
material-react-table version
2 and 3 at least
react & react-dom versions
17
Describe the bug and the steps to reproduce it
The
draggingRow.index
andhoveredRow.index
are wrong when the table was previoulsy sorted on the first drop. Future drops work as expected.Minimal, Reproducible Example - (Optional, but Recommended)
https://stackblitz.com/edit/github-r7odah?file=src%2FTS.tsx
Screenshots or Videos (Optional)
Do you intend to try to help solve this bug with your own PR?
None
Terms