Is it possible to unselect a cell in DataTable?

Is it possible to unselect a cell? I don’t like the fact that the last selected cell stays highlighted after I leave the table and focus on other components in my dashboard (e.g. another data table).


I would like to know how to do this too. It’s come up before as well, but no solution: Deselect cell in data table

I tried updating the active_cell property, but that didn’t work. I did a workaround by having a button to hide/show selections which updated style_data_conditional, but it’s kinda lame.

It would be great if you could click on a cell/row/column to toggle active or selected.


Does anyone know if this has been solved yet, maybe on another post?

1 Like

Try this…