From 45819b22f228c04a5b25d789a4aecee8f3cd5f1d Mon Sep 17 00:00:00 2001 From: rickcole Date: Fri, 8 May 2020 20:45:15 +0800 Subject: [PATCH] fix --- src/renderers/Drawer.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/renderers/Drawer.tsx b/src/renderers/Drawer.tsx index c9490530..351b08d8 100644 --- a/src/renderers/Drawer.tsx +++ b/src/renderers/Drawer.tsx @@ -141,6 +141,11 @@ export default class Drawer extends React.Component { handleSelfClose() { const {onClose, store} = this.props; + // 如果有子弹框,那么就先不隐藏自己 + if (store.dialogOpen !== false || store.drawerOpen !== false) { + return; + } + // clear error store.updateMessage(); onClose();