Skip to content

Commit

Permalink
Fix bug with IE10 not instantiating props (#194)
Browse files Browse the repository at this point in the history
The `props` property doesn't seem to be initialized at this point when creating a <FlipMove> component, which leads to an error.
  • Loading branch information
nicolasraynaud-millevolts authored and joshwcomeau committed Oct 14, 2017
1 parent 599c50f commit 49ca54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FlipMove.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class FlipMove extends Component<ConvertedProps, FlipMoveState> {
// of truth.
state = {
children: getElementChildren(
this.props.children,
this.props? this.props.children: [],
).map((element: Element<*>) => ({
...element,
element,
Expand Down

0 comments on commit 49ca54f

Please sign in to comment.