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.

selectRow.bgColor does not work if onSelect is used

See original GitHub issue

Using this example:

https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html?selectedKind=Row Selection&selectedStory=Hide Selection Column&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel

If you add an onSelect handler to it, the handler will be called, but the background color is not set. Remove the handler and the background color is set.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
waynebrantleycommented, Jun 25, 2018

We were using mode of ‘radio’

0reactions
AllenFangcommented, Nov 4, 2018

Sorry for lately fixed… RELEASE NOTE

now you can call setState in selectRow.onSelect and we support a feature that you can reject the selection, please check this and here is example

Read more comments on GitHub >

github_iconTop Results From Across the Web

Row Selection Props · react-bootstrap-table2
This callback function will be called when a row is select/unselect and pass following four arguments: row , isSelect , rowIndex and e...
Read more >
How to change the selected table row background color with ...
I want to change a table row background color when clicked and back to what it was originally when another row clicked.
Read more >
Row Selection - Tabulator
Row selection allows users to select and highlight a number of rows that you can then take action on. This allows rows to...
Read more >
Selecting rows - TreeGrid
If set to 0, selected cells are highlighted only by background color. It is used for SelectingCells, selected rows are always highlighted by...
Read more >
Blazor Grid - Events - Documentation - Telerik
Clicking on the GridCommandButton , select row CheckBox , expanding a Detail Template or when the row is in edit/insert mode will not...
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