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

Render null if width or height is 0 or falsy #64

Open
wants to merge 1 commit into
base: v1.3.0
Choose a base branch
from

Conversation

gmaclennan
Copy link
Member

No description provided.

@stonebk
Copy link

stonebk commented Apr 24, 2017

Same as #61 -- any time frame on a merge?

@@ -157,7 +157,7 @@ module.exports = function Dimensions ({
}
return (
<div className={className} style={containerStyle} ref='container'>
{(containerWidth || containerHeight) &&
{!(containerWidth || containerHeight) : null ?

Choose a reason for hiding this comment

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

I understand this is probably pending a maintainer. But just to note, it appears the ternary has the ? and : in the incorrect order.

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.

3 participants