Describe the bug
I can use the getNextSortingOrder method, but I can't pass parameters, so the value of multi is always false, the enableMultiRemove is invalid
getNextSortingOrder: () => SortDirection | false
getNextSortingOrder: (multi?: boolean) => {
const firstSortDirection = column.getFirstSortDir()
const isSorted = column.getIsSorted()
if (!isSorted) {
return firstSortDirection
}
if (
isSorted !== firstSortDirection &&
(table.options.enableSortingRemoval ?? true) &&
(multi ? table.options.enableMultiRemove ?? true : true)
) {
return false
}
return isSorted === 'desc' ? 'asc' : 'desc'
},
Your minimal, reproducible example
none
Steps to reproduce
none
Expected behavior
none
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
none
react-table version
v17.0.2
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct
Describe the bug
I can use the
getNextSortingOrdermethod, but I can't pass parameters, so the value ofmultiis always false, theenableMultiRemoveis invalidYour minimal, reproducible example
none
Steps to reproduce
none
Expected behavior
none
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
none
react-table version
v17.0.2
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct