fix: inconsistent state when quickly closing a sliding view
This commit is contained in:
parent
2f92e72858
commit
a48d67bdc7
|
@ -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();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue