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

Selected columns field is reset to "None selected" after sorting #1586

Open
gythaogg opened this issue Feb 6, 2025 · 0 comments
Open

Selected columns field is reset to "None selected" after sorting #1586

gythaogg opened this issue Feb 6, 2025 · 0 comments
Labels
bug Something isn't working (properly, as expected, at all)

Comments

@gythaogg
Copy link
Contributor

gythaogg commented Feb 6, 2025

Example - https://discworld.acdh-ch-dev.oeaw.ac.at/sample_project.group/ initially shows that ID column is selected

Image

After clicking on ID in the column header to sort by ID - the columns field is reset to "None selected" but the ID column is visible, https://discworld.acdh-ch-dev.oeaw.ac.at/sample_project.group/?sort=id

Image

This can also be reproduced by navigating to another page in the ListView instead of sorting.

This DOES NOT happen when there are other search parameters. If I filter the results via search and then sort the table, the columns field remains unchanged. This bug exists when the table is sorted without filtering.

Despite the columns field showing "None selected" if I filter the list, the ID column still remains in the list view. However when I add an additional column and submit, because this column got deselected while sorting the table, the ID column disappears from the view.

I think as long as the column is appearing in the table, if it is initially shown as selected column, unless the user actively deselects it, it should not be removed from the selected columns

@gythaogg gythaogg added the bug Something isn't working (properly, as expected, at all) label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working (properly, as expected, at all)
Projects
None yet
Development

No branches or pull requests

1 participant