question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sort and select combination no longer working in 3.3.4

See original GitHub issue

Version 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

  1. Sort by a column
  2. Select a row
  3. 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
AllenFangcommented, Feb 16, 2020

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

0reactions
AllenFangcommented, Feb 16, 2020

I will take a look on this issue, thanks for bug report

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sort data in a table - Microsoft Support
Sort the table. Select a cell within the data. Select Home > Sort & Filter. Sort&Filter. Or, select Data > Sort. DATA-Sort&Filter. Select...
Read more >
5 Data transformation | R for Data Science: Exercise Solutions
First, the column location of variables may change, resulting in code that may continue to run without error, but produce the wrong answer....
Read more >
PRACTICAL GREMLIN: An Apache TinkerPop Tutorial
Using Math.random to more randomly select a single vertex ... Changes to order introduced in TinkerPop release 3.3.4.
Read more >
Sorting algorithm - Wikipedia
Formally, the output of any sorting algorithm must satisfy two conditions: The output is in monotonic order (each element is no smaller/larger than...
Read more >
Web Content Accessibility Guidelines (WCAG) 2.1 - W3C
Note that even content that conforms at the highest level (AAA) will not be accessible to individuals with all types, degrees, or combinations...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found