diff --git a/src/components/Drawer.tsx b/src/components/Drawer.tsx index d2e7434a..7814246b 100644 --- a/src/components/Drawer.tsx +++ b/src/components/Drawer.tsx @@ -116,11 +116,14 @@ export class Drawer extends React.Component { (e.button === 1 && window.event !== null) || e.button === 0; this.isRootClosed = !!( - isLeftButton && - closeOnOutside && - target && - this.modalDom && - !this.modalDom.contains(target) + ( + isLeftButton && + closeOnOutside && + target && + this.modalDom && + !this.modalDom.contains(target) && + !target.closest('[role=dialog]') + ) // 干脆过滤掉来自弹框里面的点击 ); }