Closed shetz163 closed 2 years ago
[https://stackblitz.com/Edit/ng- Zorro-antd-ivy-qn2ncx](https://stackblitz.com/edit/ng- ze --antd-ivy-qn2ncx)
Click the Click ME button to display the effect
Normal display of pop-up window
Bowl under the mask layer
ENVIRONMENT | INFO |
---|---|
Ng-Zorro-ANTD | 12.0.2 |
Browser | Chrome |
The value of CDK-Global-Overlay-Wrapper's Z-Index is still 1000, not 1001, Ng-Zorro 11 in StackBlitz I can't reproduce this situation, 12 is like this
...
constructor(public modal: NzModalService) {}
// Duplicate identifier 'modal', please rename `modal()` to be `createModal()`
modal() {
this.modal.create({
nzContent: '在ng-zorro 11上无法复现这个情况,但12上可以',
nzZIndex: 1001,
});
}
... constructor(public modal: NzModalService) {} // Duplicate identifier 'modal', please rename `modal()` to be `createModal()` modal() { this.modal.create({ nzContent: '在ng-zorro 11上无法复现这个情况,但12上可以', nzZIndex: 1001, }); }
rename completed
@simplejason how can I REOPEN it?
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-ivy-qn2ncx
Steps to reproduce
点击click me 按钮显示效果
What is expected?
弹窗的正常显示
What is actually happening?
弹窗在遮罩层下方
cdk-global-overlay-wrapper的z-index的数值依旧为1000, 而非传递的1001, 在stackblitz里的 ng-zorro 11 我无法重现这个情况, 12上面现在是这样的