Skip to content

Row selection is not working with ToolkitProvider #1643

@Raj-kishore

Description

@Raj-kishore

About the bug
I am using search box with react-bootstrap-table2. For that, I wrapped the table with ToolkitProvider. Also I want to use checkbox to select multiple rows. Now the checkboxes are not visible.

Screenshots
bug

codesandbox

  const { SearchBar } = Search;
  const selectRow = {
    mode: 'checkbox',
    clickToSelect: true
  };
  <ToolkitProvider
    keyField="id"
    data={products}
    columns={columns}
    search
  >
    {
      props => (
        <div>
          <SearchBar  {...props.searchProps} />
          <hr />
          <BootstrapTable  {...props.baseProps} selectRow={selectRow} />
        </div>
      )
    }
  </ToolkitProvider>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions