Skip to content

Commit e9d26f2

Browse files
authored
fix: portalWrapper add autoLock prop (#6687), close #6649
1 parent 7fd0e4a commit e9d26f2

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

components/modal/style/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,15 @@ export const genModalMaskStyle: GenerateStyle<TokenWithCommonCls<AliasToken>> =
6161
userSelect: 'none',
6262
},
6363

64+
[`${componentCls}${token.antCls}-zoom-leave ${componentCls}-content`]: {
65+
pointerEvents: 'none',
66+
},
67+
6468
[`${componentCls}-mask`]: {
6569
...box('fixed'),
6670
zIndex: token.zIndexPopupBase,
6771
height: '100%',
6872
backgroundColor: token.colorBgMask,
69-
7073
[`${componentCls}-hidden`]: {
7174
display: 'none',
7275
},

components/vc-dialog/DialogWrap.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const DialogWrap = defineComponent({
5050
}
5151
return (
5252
<Portal
53+
autoLock
5354
visible={visible}
5455
forceRender={forceRender}
5556
getContainer={getContainer}

components/vc-drawer/src/DrawerWrapper.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ const DrawerWrapper = defineComponent({
6666
if ($forceRender || props.open || dom.value) {
6767
portal = (
6868
<PortalWrapper
69+
autoLock
6970
visible={props.open}
7071
forceRender={$forceRender}
7172
getContainer={getContainer}

0 commit comments

Comments
 (0)