diff --git a/src/js/floating-action-button.jsx b/src/js/floating-action-button.jsx index 0c443d6b82d6ef..ac29bb057caaaa 100644 --- a/src/js/floating-action-button.jsx +++ b/src/js/floating-action-button.jsx @@ -67,10 +67,12 @@ var RaisedButton = React.createClass({ //animate the zdepth change this.setState({ zDepth: this.state.initialZDepth + 1 }); setTimeout(function() { - this.setState({ zDepth: this.state.initialZDepth }); + if (this.isMounted()) { + this.setState({zDepth: this.state.initialZDepth}); + } }.bind(this), 450); } }); -module.exports = RaisedButton; \ No newline at end of file +module.exports = RaisedButton;