diff --git a/src/components/views/elements/TagTile.js b/src/components/views/elements/TagTile.js index a8d4e514ae..7bb047504e 100644 --- a/src/components/views/elements/TagTile.js +++ b/src/components/views/elements/TagTile.js @@ -42,6 +42,12 @@ export default React.createClass({ matrixClient: React.PropTypes.instanceOf(MatrixClient).isRequired, }, + getInitialState() { + return { + hover: false, + }; + }, + componentWillMount() { this.unmounted = false; if (this.props.tag[0] === '+') { @@ -59,12 +65,6 @@ export default React.createClass({ this.unmounted = true; }, - getInitialState() { - return { - hover: false, - }; - }, - onClick: function(e) { e.preventDefault(); e.stopPropagation();