Skip to content

Table don't updating width on changing schema dynamically #1401

@gustavolima00

Description

@gustavolima00

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions