Skip to content

Passing Event as argument to onSelect* handlers #302

@chrisvoo

Description

@chrisvoo

Hi,
onSelect* handlers take three arguments, but the Event is not between them. Given the following code:

 <BootstrapTable
      onClick={this.handleChildUnmount}
      striped
      condensed
      keyField="token"
      classes="bootstrap-table"
      data={this.state.rows}
      columns={this.columns}
      defaultSorted={[{
           dataField: 'ssid',
           order: 'asc',
       }]}
       rowEvents={{ onClick: (e, row) => this.onClickRow(row) }}
       selectRow={{
            mode: 'checkbox',
            selected: this.state.selected,
            onSelect: this.handleOnSelect,
            onSelectAll: this.handleOnSelectAll,
            classes: 'selectedRow',
       }}
 />

rowEvents is an handler which leads the user to another section, but when I click on the checkbox to select the row, by the fact that the event is not available, I cannot invoke e.stopPropagation() so even the other event is triggered and I'm always redirected to another section.
It would be very helpful to have Event between arguments. If you see that this can be achieved in another way with the current code, please let me know.
Best wishes.

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