styleguide
styleguide copied to clipboard
Table don't updating width on changing schema dynamically
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
Heres the table when I update the schema dynamically and remove the last column
Here is the table when a Update the page and force the re-render with 8 columns
To Reproduce Steps to reproduce the behavior:
- Create a table component with fullWidth and a dynamically schema
- Fill the table with some lines
- Change the columns number with the schema
- See error
Expected behavior The table will update the width of columns but the lines will not change
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?