Skip to content

Use previous columns for reorder logic #1

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

Merged
merged 1 commit into from
Nov 26, 2021
Merged

Conversation

jscholar
Copy link
Owner

Related Issue

Relate the Github issue with this PR using #

Description

Simple words to describe the overall goals of the pull request's commits.

Related PRs

List related PRs against other branches:

branch PR
other_pr_production link
other_pr_master link

Impacted Areas in Application

List general components of the application that this PR will affect:

*

Additional Notes

This is optional, feel free to follow your hearth and write here :)

* See:
   * mbrn/material-table#1975
   * material-table-core#48 (comment)
* Addresses issue where column sorting will unintentially revert to default when props other than the defaultSort changes (such as the data)
* Originally, a comparison was made between column props and current sorting. This changes the comparison to between column props and prev column props.
* Fixes boolean logic for comparisons

* Tested against original reproduction example provided in mbrn/material-table#1868
@jscholar jscholar merged commit f2c93e9 into master Nov 26, 2021
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