Selecting row hides toolbar action menu
Describe the bug When rows are selected, the toolbar.nRowsSelected message blocks the toolbar action menu. Even when options.showTextRowsSelected is false the toolbar menu still disappears, even though no message blocks it.
To Reproduce Steps to reproduce the behavior:
- Enable selection and disable selection text in options prop:
const options = {
selection: true,
showTextRowsSelected: false,
...
- Notice that toolbar action menu is shown
- Select one or more rows
- Notice how toolbar menu disappears
Expected behavior Toolbar should stay regardless of row selection. Possibly add additional option to force toolbar to stay on top, even if selection message is present (show both message and toolbar if there is space in the header).
Screenshots
No selection:

With selection and no selection message:

Desktop (please complete the following information):
- OS: MacOS Mojave
- Browser: Firefox Developer Edition, version 69.0b11 (64-bit)
Any update on this? It's a pretty annoying bug
@mbrn can you please take a look at this?
- Is this a bug or does it work as designed?
- Any suggestion how to make actions work with selections would be helpful
It seems like a bug. I will take a look it. But I prioritize the issues according to their reaction count. Please take a look at readme
Thank you for the fast reply. I need this feature but can use something custom until it's fixed. I might look into it and try to open a PR if I can get it to work.
I'm not sure if this helps the other reporters. In my case I was able to find some undocumented feature (I might also be blind) to support my desired behavior.
actions={[{
icon: 'edit',
tooltip: 'Edit',
position: "toolbarOnSelect",
onClick: () => {
console.log('Clicked edit action')
}
}]}
This will show the action in the toolbar only if one or more rows are selected which is exactly what I was trying to achieve.

Up. After some searching and overrides attemps, I still cannot figure how change the "showTextRowSelected"... we can only set the prop true/false
@corneliushka showTextRowsSelected is a boolean option. I'm not sure how your question relates to this issue.
You can set showTextRowsSelected to false if you want to disable the text "[n] rows selected" which works as designed
notice how the title stays in place compared to the gif I posted earlier

Sorry I wrongly explained myself; I want to change color (pink to grey) & the text x row(s) selected, but I don't know how. showTextRowsSelected is the only prop I found that's related to this...
@corneliushka This is absolutely unrelated to this issue. Please make sure you don't spam other issues. If you notice a bug, please open an issue (look for existing issues) if you need help please consider other platforms like Stackoverflow which has more activity and a faster reply-rate.
You can find examples on styling here: https://material-table.com/#/docs/features/styling
no need to answer to this comment, thank you.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.
2021 and we still have this bug, did anyone get this working?
By working I mean setting the showTextRowsSelected to false and the toolbar buttons would still be visible regardless if there are checkboxes selected or not.
Also, I don't understand how this is marked as "wontfix" this is clearly a bug and a very common requirement.
Thanks
@sr2399 I identified the issue, I consider that a bug and sent a PR to the material-table repo. You might want to take a look, hoping it gets approved soon.
https://github.com/mbrn/material-table/pull/2809