We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26ebab5 + c71a974 commit 8766d63Copy full SHA for 8766d63
1 file changed
src/js/floating-action-button.jsx
@@ -67,10 +67,12 @@ var RaisedButton = React.createClass({
67
//animate the zdepth change
68
this.setState({ zDepth: this.state.initialZDepth + 1 });
69
setTimeout(function() {
70
- this.setState({ zDepth: this.state.initialZDepth });
+ if (this.isMounted()) {
71
+ this.setState({zDepth: this.state.initialZDepth});
72
+ }
73
}.bind(this), 450);
74
}
75
76
});
77
-module.exports = RaisedButton;
78
+module.exports = RaisedButton;
0 commit comments