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

Enable autoResetSortBy when manual sorting and initialSorting are used together #892

Closed
wants to merge 1 commit into from

Conversation

pedrodim
Copy link
Member

This PR enables autoResetSortBy when both onSort (manual sorting) and initialSorting are set, so that we can gain more control on the table's sortBy internal state (it resets to the initial state whenever data changes). This is useful when the data sorting can be updated from outside the table, like for example controls (maybe a "reset table" button) or route navigation.

@pedrodim pedrodim requested review from gabro and removed request for gabro August 29, 2024 13:13
@pedrodim pedrodim marked this pull request as draft August 29, 2024 13:26
@pedrodim pedrodim closed this Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant