This commit is contained in:
Bruno Windels 2019-03-28 18:29:48 +01:00
parent 30dc6a9150
commit 0a4ef44bcf
2 changed files with 1 additions and 3 deletions

View file

@ -64,8 +64,7 @@ module.exports = React.createClass({
const isVisible = this._isVisible(this.state);
if (this.props.onShown && !wasVisible && isVisible) {
this.props.onShown();
}
else if (this.props.onHidden && wasVisible && !isVisible) {
} else if (this.props.onHidden && wasVisible && !isVisible) {
this.props.onHidden();
}
},