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

Check whether tableContent ref is present #2907

Merged
merged 1 commit into from
Oct 23, 2017

Conversation

fbarl
Copy link
Contributor

@fbarl fbarl commented Oct 23, 2017

Fix #2898.

The tableContent ref is only set after the first render, so if we would immediatelly focus on a row in the first render cycle, the race conditions would sometimes cause this error.

Ignoring the height if tableContent is not there is fine as the height defaults to 0, which is always fine before the second render (when a row might be removed from the table so that value becomes relevant).

@fbarl fbarl self-assigned this Oct 23, 2017
@fbarl fbarl requested a review from jpellizzari October 23, 2017 15:17
@fbarl fbarl merged commit 93758ab into master Oct 23, 2017
@dlespiau dlespiau deleted the 2898-fix-scroll-height-of-null-error branch November 2, 2017 12:27
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.

2 participants