material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Column's defaultSort places column's arrow backwards

Open bvicinus opened this issue 6 years ago • 2 comments

Tested this using columns of strings, numbers, and datetimes (with custom sorting functions). The default sort does sort the data correctly, it just displays an arrow in the improper direction. Using defaultSort="asc" places a downwards arrow on the column when it should be an upwards arrow. And vice versa.

Removing the defaultSort fixes the issue (the arrows work as intended if you click on the column).

bvicinus avatar Apr 02 '20 19:04 bvicinus

@bvicinus I noticed this as well. Quick fix included using ArrowDownward instead of ArrowUpward

william13murphy avatar Apr 09 '20 17:04 william13murphy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

stale[bot] avatar Jul 08 '20 18:07 stale[bot]