styleguide icon indicating copy to clipboard operation
styleguide copied to clipboard

Table don't updating width on changing schema dynamically

Open gustavolima00 opened this issue 3 years ago • 1 comments

Describe the bug When I use a Table with this configuration <Table fullWidth schema={function()} items={myItems} /> In order to change the schema dynamically with some function, the table don't update the widths correctly

Example: Here is one table with 9 columns image

Heres the table when I update the schema dynamically and remove the last column image

Here is the table when a Update the page and force the re-render with 8 columns image

To Reproduce Steps to reproduce the behavior:

  1. Create a table component with fullWidth and a dynamically schema
  2. Fill the table with some lines
  3. Change the columns number with the schema
  4. See error

Expected behavior The table will update the width of columns but the lines will not change

gustavolima00 avatar Aug 06 '21 13:08 gustavolima00

Hi, @gustavolima00!

Thank you for spotting this! I think it's, in fact, one of the reasons why we decided to implement a new table, which is the EXPERIMENTAL_TableV2. Can you check if this happens with the new component?

estacioneto avatar Aug 09 '21 17:08 estacioneto