fix: modal mask should block pointer events when opened (#47508)

* fix: modal mask should block pointer events when opened

* chore: code clean
This commit is contained in:
MadCcc 2024-02-21 09:58:46 +08:00 committed by GitHub
parent dd3e1b2a2e
commit 6033c69e60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,12 +131,6 @@ export const genModalMaskStyle: GenerateStyle<TokenWithCommonCls<AliasToken>> =
overflow: 'auto',
outline: 0,
WebkitOverflowScrolling: 'touch',
// Note: Firefox not support `:has` yet
[`&:has(${componentCls}${antCls}-zoom-enter), &:has(${componentCls}${antCls}-zoom-appear)`]:
{
pointerEvents: 'none',
},
},
},
},