material-table
material-table copied to clipboard
Number of selected items not displayed in table header
Describe the bug
When items are selected, the number of items does not display as shown in the demos/documentation, even with selection: true
To Reproduce Steps to reproduce the behavior:
- Setup a new table similar to below:
<MaterialTable
columns={this.state.columns}
data={this.state.data}
options={{
filtering: true,
paging: true,
maxBodyHeight: 600,
selection: true,
pageSize: 15,
pageSizeOptions: [15, 20, 25, 50, 100],
showTitle: false,
columnsButton: true,
toolbarButtonAlignment: "right",
actionsColumnIndex: 1
}}
actions={[
{
icon: "settings",
tooltip: "Actions",
// isFreeAction: true,
onClick: (event, rowData) => {
console.log(rowData);
}
}
]}
/>
- Click on a rows checkbox
- See the header not display the number of selected items.
Expected behavior
The number of selected items should be displayed within the table header as shown below:

Screenshots

Desktop (please complete the following information):
- OS: MacOS Mojave 10.14.2
- Browser: Chrome
- Version: Version 73.0.3683.86
This is done with version 1.31.0