-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Modal没有完全遮挡其他元素 #2762
Comments
左侧 Menu 或者他的祖先元素的 z-index 比 Modal 的高了,调整下就好。 |
@benjycui 都是默认的组件, 没有设置z-index, 而且modal设置了z-index 999 也没有用.. |
建议认真学习堆栈上下文的概念。 |
只能尝试修复了。。。 |
其实我觉得是外层容器的原因 https://www.qianduan.net/that-thing-on-the-z-index/ @joesonw 你应该是修改了 Modal 的容器节点吧。 |
新的 |
你不给重现,无法定位,只能盲改。 |
|
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
本地环境
你做了什么?
外层有一个Menu在左边, 右边是内容
右边子组件里使用了Modal
你期待的结果是:
正常遮挡住所有元素
实际上的结果:
左边Menu没被遮挡住
The text was updated successfully, but these errors were encountered: