-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use previous columns for reorder logic (#414)
* See: * mbrn/material-table#1975 * #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 Co-authored-by: Jin Cai <jinci@amazon.com>
- Loading branch information
Showing
1 changed file
with
34 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters