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

Use children vs. childNodes in data-table cell height calc #244

Merged
merged 2 commits into from
Oct 29, 2018

Conversation

tomnez
Copy link
Contributor

@tomnez tomnez commented Oct 29, 2018

Moved this fix out of #243 to be in it's own PR since we're going to hold off on merging #243 until we upgrade to a version of Polaris where they include the fix as well.

Copied description from 243:

As for the heights not calculating correctly, we were using childNodes which was also grabbing text nodes, whereas we want just html elements. The React version gets away with using childNodes because they use row.childNodes as NodeListOf<HTMLElement> so I'm guessing this is a TS thing where it will only grab elements and filter out the text nodes.

@tomnez tomnez self-assigned this Oct 29, 2018
Copy link
Member

@andrewpye andrewpye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, how did we not catch this before? 😅 Good job @tomnez 👍

@tomnez tomnez merged commit 5e93454 into dev Oct 29, 2018
@delete-merged-branch delete-merged-branch bot deleted the fix-data-table-height-calculation branch October 29, 2018 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants