fix: inconsistent state when quickly closing a sliding view

This commit is contained in:
Bettenbuk Zoltan
2019-07-03 13:43:56 +02:00
committed by Zoltan Bettenbuk
parent 2f92e72858
commit a48d67bdc7
@@ -264,7 +264,9 @@ export default class SlidingView extends PureComponent<Props, State> {
})
.start(({ finished }) => {
finished && this._mounted && !show
&& this.setState({ showOverlay: false });
&& this.setState({ showOverlay: false }, () => {
this.forceUpdate();
});
resolve();
});
});