Skip to content

Commit

Permalink
fix: modal mask should block pointer events when opened (ant-design#4…
Browse files Browse the repository at this point in the history
…7508)

* fix: modal mask should block pointer events when opened

* chore: code clean
  • Loading branch information
MadCcc authored and tanzhenyun committed Mar 29, 2024
1 parent 51bfe72 commit 1c27a74
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions components/modal/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},
},
},
Expand Down

0 comments on commit 1c27a74

Please sign in to comment.