Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

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

Open
gmaclennan wants to merge 1 commit into
v1.3.0from
dont-render-zero
Open

Render null if width or height is 0 or falsy#64
gmaclennan wants to merge 1 commit into
v1.3.0from
dont-render-zero

Conversation

@gmaclennan

Copy link
Copy Markdown
Contributor

No description provided.

@stonebk

stonebk commented Apr 24, 2017

Copy link
Copy Markdown

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

Comment thread index.jsx
return (
<div className={className} style={containerStyle} ref='container'>
{(containerWidth || containerHeight) &&
{!(containerWidth || containerHeight) : null ?

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants