Skip to content

Column formatter seems to conflict with expandRow. #979

@zylin1206

Description

@zylin1206

Version
react-bootstrap-table-next: 3.1.4

Description
I have a column contain a button that will show if the row hovers. To achieve that, I use rowEvents to catch the event and setState to update the cell through formatter (I use formatExtraData to pass extra data). It works fine when my table doesn't have expandRow.
When I add expandRow to my table, the function of formatter is just called once time on the page loaded and doesn't update at setState.

Code
https://repl.it/@zylin1206/React-table

So sorry for my bad English 😅

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions