Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker committed Mar 27, 2017
1 parent fd19103 commit bb7566d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/autotext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ class AutoText extends React.Component {
this.autoText();
}

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

setFontSize(fontSize) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-auto-text",
"version": "1.0.0-rc1",
"version": "1.0.0",
"description": "A React component for autosizing text within a set container size",
"main": "dist/autotext.jsx",
"module": "lib/autotext.jsx",
Expand Down

0 comments on commit bb7566d

Please sign in to comment.