Skip to content

React.addons.TransitionGroup should not throw on undefined children #521

@hojberg

Description

@hojberg

Consider this example:

var foo;

if (this.state.bar) foo = <Foo/>;

<TransitionGroup transitionName='baz'>
  {foo}
</TransitionGroup>

If state is false or undefined, foo will be undefined and React.addons.TransitionGroup will throw Uncaught TypeError: Object.keys called on non-object

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions