Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inverted data when editing a cell in a sorted column #3431

Closed
maximlt opened this issue Apr 19, 2022 · 1 comment · Fixed by #3542
Closed

Inverted data when editing a cell in a sorted column #3431

maximlt opened this issue Apr 19, 2022 · 1 comment · Fixed by #3542
Labels
component: tabulator Related to the Tabulator widget type: bug Something isn't correct or isn't working

Comments

@maximlt
Copy link
Member

maximlt commented Apr 19, 2022

When using header sorters and then editing the data in a tabulator widget the data gets inverted.

As an example, starting with this dataframe:

   a  b
0  1  x
1  2  y
2  3  z

Then applying a header/frontend sorter, editing a cell (here 3 to 4) and applying the header sorter again (the data should be displayed in the same order):

   a  b
0  4  z
1  2  y
2  1  x
@maximlt maximlt added type: bug Something isn't correct or isn't working component: tabulator Related to the Tabulator widget labels Apr 19, 2022
@maximlt maximlt added this to the Version 0.13.1 milestone Apr 19, 2022
@philippjfr
Copy link
Member

Damn, was worried this could happen when syncing the sorters. We'll have to apply the sorters only for the current_view and not for the internal _processed attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tabulator Related to the Tabulator widget type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants