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

Grid clearable sort issue #1246

Open
nebojsa-peric opened this issue Dec 8, 2024 · 0 comments
Open

Grid clearable sort issue #1246

nebojsa-peric opened this issue Dec 8, 2024 · 0 comments
Labels

Comments

@nebojsa-peric
Copy link
Collaborator

When we define Grid with clearableSort and defaultSortField, sorting by the field marked as the defaultSortField doesn't work.
The exact behavior also depends on the defaultSortDirection. If defaultSortDirection is set to DESC, clicking on the header, resets the sorting correctly, however, the defaultSortField sorts the grid again by the same field. So you stay infinitely in the DESC state. If defaultSortDirection is set to ASC, sorting keeps switching between ASC and DESC. So you can never go into a 'no-sort' state. This doesn't happen with other fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant