Skip to content

Commit

Permalink
fix prevChildren destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker committed Mar 24, 2017
1 parent 3994229 commit fd19103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/autotext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class AutoText extends React.Component {
this.autoText();
}

componentDidUpdate({ prevChildren: children }) {
componentDidUpdate({ children: prevChildren }) {
if(prevChildren !== this.props.children) {
this.autoText();
}
Expand Down

0 comments on commit fd19103

Please sign in to comment.