canSort is always true when manualSortBy is true
See original GitHub issueDescribe the bug
column.canSort is always true when manualSortBy is true. I’d expect it to default to false for each column (the docs show defaultCanSort should default to false on both the table and column level). Even if I set these explicitly to false on both the table level options and/or the column level options, column.canSort is always true.
Steps To Reproduce Steps to reproduce the behavior:
- Go to the codesandbox above
- Observe the
defaultCanSortis false on both the table options and one of the column options - Observe that all columns can still be sorted
Expected behavior
column.canSort respects the defaultCanSort options.
Additional context
I have noticed that disableSorting does work in disabling it. I’m confused as to why there is defaultCanSort and disableSorting - as opposed to defaultCanSort and canSort? Is there a difference I’m not understanding? And if defaultCanSort is false, why is that not respected?
And why is it “default” canSort - this makes me think it’s the default for an uncontrolled prop/state and that canSort could change… is that possible?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:5

Top Related StackOverflow Question
The docs also show table and column level props for
defaultCanSort- this is what my issue is about - they don’t seem to work.I don’t want to repeat
disableSortByon every column - I want to defaultcanSortto false and then only set it to true on a column where I want to support it.is this problem fixed? I am facing same problem…