Skip to content

Commit 456e185

Browse files
committed
fix(modal): outside content can't be interacted with show-mask is set to `false
1 parent 032a787 commit 456e185

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- Fix seemly dependency version range allows incompatible versions.
88
- Fix `n-progress` style is incorrect after using the dashboard mode exceeding 100%, closes [#6627](https://github.com/tusen-ai/naive-ui/issues/6627)
9+
- Fix `n-modal`'s outside content can't be interacted with `show-mask` is set to `false`.
910

1011
### Feats
1112

CHANGELOG.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- 修复 seemly 依赖的版本未更新到最新
88
- 修复 `n-progress` 使用仪表盘模式超过 100% 之后样式不正确,关闭 [#6627](https://github.com/tusen-ai/naive-ui/issues/6627)
9+
- 修复 `n-modal``show-mask``false` 的情况下,外部内容不能被操作
910

1011
### Feats
1112

src/modal/src/styles/index.cssr.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ export default c([
4646
position: relative;
4747
`),
4848
cM('mask-hidden', `pointer-events: none;`, [
49-
c('> *', `
50-
pointer-events: all;
51-
`)
49+
cB('modal-scroll-content', [
50+
c('> *', `
51+
pointer-events: all;
52+
`)
53+
])
5254
])
5355
]),
5456
cB('modal', `

0 commit comments

Comments
 (0)