Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gustavolima00 opened this issue Aug 6, 2021 · 1 comment
Open

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

gustavolima00 opened this issue Aug 6, 2021 · 1 comment
Labels

Comments

@gustavolima00
Copy link

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

@estacioneto
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants