Skip to content
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

nzModal 弹出框设置 nzZIndex 属性, 遮罩层未紧跟弹出框下 #6288

Closed
SuperRichZhao opened this issue Dec 30, 2020 · 1 comment · Fixed by #6294
Closed

nzModal 弹出框设置 nzZIndex 属性, 遮罩层未紧跟弹出框下 #6288

SuperRichZhao opened this issue Dec 30, 2020 · 1 comment · Fixed by #6294
Assignees

Comments

@SuperRichZhao
Copy link

Reproduction link

https://stackblitz.com/edit/angular-vqhcrl?file=src/app/app.component.ts

Steps to reproduce

  1. 点击 open first modal 按钮 打开第一个弹出框
  2. 在打开弹出框的里点击 open second modal 按钮, 打开第二个弹出框, 第二个弹出框的遮罩层不在第一个弹出框的上面

What is expected?

遮罩层可跟随弹出框一起出现, 并在弹出框下一层

What is actually happening?

遮罩层的 z-index 仍然是 1000

Environment Info
ng-zorro-antd 11.0.0
Browser chrome 89.0
@zorro-bot
Copy link

zorro-bot bot commented Dec 30, 2020

Translation of this issue:

NZMODAL pop-up box sets the NZZIndex property, the mask layer is not followed by the pop-up

reproduction link

[https://stackblitz.com/edit/angular-vqhcrl?file=src/app/app.component.ts](https://stackblitz.com/edit/angular-vqhcrl?file=src/app/App. Component.ts)

steps to reproduce

  1. Click the Open First Modal button to open the first pop-up box.
  2. Click the Open Second Modal button in the open pop-up box, open the second pop-up box, the mask layer of the second pop-up box is not on the first pop-up box

What is expected?

The mask layer can appear together with the pop-up box and next layer below the pop-up

What is actually happens?

The Z-Index of the mask layer is still 1000

ENVIRONMENT INFO
Ng-Zorro-ANTD 11.0.0
Browser Chrome 89.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants