fix: inconsistent state when quickly closing a sliding view

This commit is contained in:
Bettenbuk Zoltan 2019-07-02 11:24:36 +02:00 committed by Zoltan Bettenbuk
parent 2f92e72858
commit a48d67bdc7
1 changed files with 3 additions and 1 deletions

View File

@ -264,7 +264,9 @@ export default class SlidingView extends PureComponent<Props, State> {
}) })
.start(({ finished }) => { .start(({ finished }) => {
finished && this._mounted && !show finished && this._mounted && !show
&& this.setState({ showOverlay: false }); && this.setState({ showOverlay: false }, () => {
this.forceUpdate();
});
resolve(); resolve();
}); });
}); });