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

correct check for empty text #1425

Merged
merged 1 commit into from
Oct 31, 2019
Merged

correct check for empty text #1425

merged 1 commit into from
Oct 31, 2019

Conversation

boygirl
Copy link
Contributor

@boygirl boygirl commented Oct 31, 2019

This PR corrects the check for empty / nonexistent text in our text size approximation
Fixes #1419

@boygirl boygirl merged commit 4376204 into master Oct 31, 2019
alecf added a commit to alecf/victory that referenced this pull request Dec 3, 2019
When using the `flyoutComponent` prop, and letting the rendered
component render any blank text, the `text` prop comes through as
`null`. This means that we try to stringify null.

This is a followup to FormidableLabs#1425 which added this check in case the height
was the number value 0, but broke `null`.
@boygirl boygirl deleted the bug/zero-tooltip-padding branch April 13, 2020 16:28
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.

VictoryTooltip displays a value of 0 with no padding
1 participant