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

Handle null or undefined children #11

Merged

Conversation

gpoole
Copy link
Contributor

@gpoole gpoole commented Jun 17, 2016

Handles cases where <Animate /> is declared like so:

<Animate>
  {undefined}
  <div key='example'></div>
</Animate>

I've verified this with a test and in my own case, but please let me know if there's any additional testing needed to make sure this doesn't cause problems?

Fixes #7.

@coveralls
Copy link

coveralls commented Jun 17, 2016

Coverage Status

Coverage decreased (-0.4%) to 74.182% when pulling 2f3e941 on gpoole:handle-null-undefined-children into e707fda on react-component:master.

@@ -138,4 +138,16 @@ describe('Animate', () => {
done();
}, 1400);
});

it('does not fail with null/undefined children', (done) => {
ReactDOM.render(
Copy link
Member

Choose a reason for hiding this comment

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

can you make a complete test?

check whether classnames are added correctly

@yiminghe
Copy link
Member

yiminghe commented Jul 5, 2016

ok, thanks

@yiminghe yiminghe merged commit 3e611db into react-component:master Jul 5, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 74.912% when pulling 0a256c4 on gpoole:handle-null-undefined-children into e707fda on react-component:master.

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

3 participants