Ver código fonte

fix: inconsistent state when quickly closing a sliding view

master
Bettenbuk Zoltan 6 anos atrás
pai
commit
a48d67bdc7

+ 3
- 1
react/features/base/react/components/native/SlidingView.js Ver arquivo

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

Carregando…
Cancelar
Salvar