material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Free actions disappear on row selection

Open heuuis opened this issue 6 years ago • 2 comments

I've seen a couple of issues surrounding the behaviour of the selection actions. I recognise that @mbrn prefers single row actions not to be available on selecting multiple rows which is fair, but the current behaviour doesn't seem to allow a button present but disabled until rows are selected. This is because free actions, along with row actions, are being removed on selection.

Material_Table_No_Selection Material_Table_One_Selection

In this example, the view columns button is disappearing on selection of rows, which is unexpected since there's no reason it should be affected by the selection. I want to be able to put a disabled button in the toolbar and then enable it when a selection is made, which is why my delete button is a free action (we use fontawesome instead of material icons, which is why the delete button isn't rendering properly yet). Unfortunately this disappears as well and can't be replaced using a custom render since it isn't in a column.

How can I get toolbar buttons which accept the data passed from a selection, and should I raise the disappearing columnsButton as a bug?

heuuis avatar Sep 15 '20 16:09 heuuis

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.

stale[bot] avatar Dec 14 '20 20:12 stale[bot]

Anyone working on this issue? This is quite a bug

dimitrie-agafitei-FNR avatar May 05 '21 11:05 dimitrie-agafitei-FNR