瀏覽代碼

fix: inconsistent state when quickly closing a sliding view

master
Bettenbuk Zoltan 6 年之前
父節點
當前提交
a48d67bdc7
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      react/features/base/react/components/native/SlidingView.js

+ 3
- 1
react/features/base/react/components/native/SlidingView.js 查看文件

264
                     })
264
                     })
265
                 .start(({ finished }) => {
265
                 .start(({ finished }) => {
266
                     finished && this._mounted && !show
266
                     finished && this._mounted && !show
267
-                        && this.setState({ showOverlay: false });
267
+                        && this.setState({ showOverlay: false }, () => {
268
+                            this.forceUpdate();
269
+                        });
268
                     resolve();
270
                     resolve();
269
                 });
271
                 });
270
         });
272
         });

Loading…
取消
儲存