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

Updating table layout / columns breaks column toggling

Open tristaaan opened this issue 3 years ago • 3 comments

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

tristaaan avatar May 25 '21 17:05 tristaaan

This was addressed on GMD 2.5.0-SNAPSHOT

kevzlou7979 avatar May 28 '21 00:05 kevzlou7979

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

kevzlou7979 avatar May 28 '21 00:05 kevzlou7979

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

tristaaan avatar May 28 '21 14:05 tristaaan