8000 fix(ScrollLocker): modal and drawer add autoLock prop with PortalWrapper by CCherry07 · Pull Request #6687 · vueComponent/ant-design-vue · GitHub
[go: up one dir, main page]

Skip to content

fix(ScrollLocker): modal and drawer add autoLock prop with PortalWrapper #6687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion components/modal/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@ export const genModalMaskStyle: GenerateStyle<TokenWithCommonCls<AliasToken>> =
userSelect: 'none',
},

[`${componentCls}${token.antCls}-zoom-leave ${componentCls}-content`]: {
pointerEvents: 'none',
},

[`${componentCls}-mask`]: {
...box('fixed'),
zIndex: token.zIndexPopupBase,
height: '100%',
backgroundColor: token.colorBgMask,

[`${componentCls}-hidden`]: {
display: 'none',
},
Expand Down
1 change: 1 addition & 0 deletions components/vc-dialog/DialogWrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const DialogWrap = defineComponent({
}
return (
<Portal
autoLock
visible={visible}
forceRender={forceRender}
getContainer={getContainer}
Expand Down
1 change: 1 addition & 0 deletions components/vc-drawer/src/DrawerWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const DrawerWrapper = defineComponent({
if ($forceRender || props.open || dom.value) {
portal = (
<PortalWrapper
autoLock
visible={props.open}
forceRender={$forceRender}
getContainer={getContainer}
Expand Down
0