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

fix(data-table): handle add/remove columns #4017

Merged
merged 3 commits into from Jan 8, 2021

Conversation

chasestarr
Copy link
Collaborator

Essentially what was going wrong was that column widths were stored in a react ref to avoid re-renders while measuring cells. When a new column was added, the code was looking for a value at the new index in the stale ref data.

Scope

Patch: Bug Fix

@vercel
Copy link

vercel bot commented Jan 8, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/uber-ui-platform/baseweb/bg0k5j828
✅ Preview: https://baseweb-git-data-table-layout-cells-on-columns-change.uber-ui-platform.now.sh

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 8, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit a88c1ec:

Sandbox Source
Basic usage Configuration

@UberOpenSourceBot
Copy link
Contributor

Visual changes were detected on this branch. Please review the following PR containing updated snapshots: #4018

Co-authored-by: UberOpenSourceBot <UberOpenSourceBot@users.noreply.github.com>
@chasestarr chasestarr merged commit d6727a6 into master Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants