Describe the bug
When the data in the table column is all the same value (an empty string), the header.column.getIsSorted() function goes from ascending to false and never reaches descending.
Your minimal, reproducible example
Do not have
Steps to reproduce
Sort by a column with data that has empty values.
See that the empty values are shown first with ascending sorting.
Try to click again (execute header.column.getToggleSortingHandler())
And see that the sorting direction changes from ascending to false.
Expected behavior
The sorting direction should be changing to descending, instead of returning to false.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
macOS
react-table version
8.10.3
TypeScript version
5.1.6
Additional context
No response
Terms & Code of Conduct
Describe the bug
When the data in the table column is all the same value (an empty string), the
header.column.getIsSorted()function goes from ascending to false and never reaches descending.Your minimal, reproducible example
Do not have
Steps to reproduce
Sort by a column with data that has empty values.
See that the empty values are shown first with ascending sorting.
Try to click again (execute
header.column.getToggleSortingHandler())And see that the sorting direction changes from ascending to false.
Expected behavior
The sorting direction should be changing to descending, instead of returning to false.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
macOS
react-table version
8.10.3
TypeScript version
5.1.6
Additional context
No response
Terms & Code of Conduct