gregnb / gregnb/mui-datatables

tableData changes if sorted/filtered

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

Description

#923 fixes the issue of data going missing when sorting etc. however it now appears to change from an array of arrays to an array of objects:

https://codesandbox.io/embed/muidatatables-custom-toolbar-txw6d

(added a couple of 'bugged' examples to give you an idea what I was achieving before)

The reason having the original index was so useful was I could enrich the table with extra data that I don't necessarily want to display in the table ie add tooltips or a link etc.

If you click sort now you will see that I have added a link but as its the data order and rowIndex don't match the link always stays on the first row. I don't expect the index to make an appearance where it was but it would be useful it it was returned somewhere.

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.