Sort and select combination no longer working in 3.3.4
See original GitHub issueVersion 3.3.4 appears to have introduced a bug when using sorting and row selection functionality together. It bug seems to only occur when using custom Selection Management and having sortable columns.
Steps to reproduce
- Sort by a column
- Select a row
- The sorting reverts to the table default
Attempting to sort a column after the issue has occurred also intermittently throws an error (onSort is not a function)
The issue also affects paginated tables using react-bootstrap-table2-paginator. When a row is selected it returns to the first page.
Expected Behaviour It is expected that the table will retain the current sorting and pagination state before and after a row is selected. This is the current behaviour for version 3.3.3 and below.
Code sandbox
I have created a sandbox that demonstrates the issue. The react-bootstrap-table-next package can be toggled to version 3.3.3 to show that the issue was not present before 3.3.4.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)

Top Related StackOverflow Question
https://react-bootstrap-table.github.io/react-bootstrap-table2/blog/2020/02/16/version-bump.html
please upgrade to newest version, this bug is a side effect when we handled the sorting issue
I will take a look on this issue, thanks for bug report