GwtMaterialDesign / gwt-material-table

A complex table component designed for the material design specifications
https://gwtmaterialdesign.github.io/gmd-table-demo/
Apache License 2.0
26 stars 31 forks source link

Updating table layout / columns breaks column toggling #210

Open tristaaan opened 3 years ago

tristaaan commented 3 years ago

My solution to get around this was to simply not use the built-in row selection features if the column toggle menu is present or if columns were being added/removed depending on data.

animation 11 59 48 AM

kevzlou7979 commented 3 years ago

This was addressed on GMD 2.5.0-SNAPSHOT

kevzlou7979 commented 3 years ago

You can test it here and confirm if the issue still exist. https://gwtmaterialdesign.github.io/gmd-table-demo/snapshot/#standard

tristaaan commented 3 years ago

Still seeing it there too. Steps to reproduce:

  1. Remove a column / add a column
  2. Add the column back / remove that added column
  3. Toggle a column with the table menu -> The toggled column will be off in some way. Here toggling the "First Name" column hides the "image" column but not its header.

Steps 1 and 2 in the gif are done by changing the table selection type which adds or removes the checkbox column. Locally I've reproduced it independent of changing the selection type.

animation