diff --git a/lib/autotext.jsx b/lib/autotext.jsx index 4d14124..4235633 100644 --- a/lib/autotext.jsx +++ b/lib/autotext.jsx @@ -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) { diff --git a/package.json b/package.json index 55e39ba..2d70fa1 100644 --- a/package.json +++ b/package.json @@ -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",