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

Select dropdown bug in popover #1643

Closed
svdamani opened this issue Jun 12, 2018 · 9 comments
Closed

Select dropdown bug in popover #1643

svdamani opened this issue Jun 12, 2018 · 9 comments
Assignees
Labels

Comments

@svdamani
Copy link

Version

1.0.0

Environment

Stable release

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-popover-select-bug

Steps to reproduce

What is expected?

Select options should be rendered above popover

What is actually happening?

Select options is getting rendered below popover

Other?

This issue first appeared since 0.7.0 release and has percolated in all further releases. However, this was working fine till 0.7.0-beta.5

@svdamani svdamani changed the title Select dropdown in popover Select dropdown bug in popover Jun 12, 2018
@super3s1988
Copy link

I meet same problem as you,I just use css to modify the z-index temporarily,but it works not very good

@vthinkxie
Copy link
Member

will be fixed in next version, thanks for your feedback.

@super3s1988
Copy link

@vthinkxie 请问有没有什么办法可以临时解决以下呢

@vthinkxie
Copy link
Member

@super3s1988 手动修改z index

@svdamani
Copy link
Author

svdamani commented Jun 13, 2018

@vthinkxie how do you manually modify z-index on .cdk-overlay-connected-position-bounding-box for a select options menu?

@svdamani svdamani reopened this Jun 13, 2018
@vthinkxie
Copy link
Member

vthinkxie commented Jun 13, 2018

@svdamani

@ViewChild(NzSelectComponent) nzSelectComponent:NzSelectComponent;

you can get cdkConnectedOverlay like

this.nzSelectComponent.cdkConnectedOverlay

@lopn
Copy link

lopn commented Jun 25, 2018

@ViewChild(NzSelectComponent) childComponent: NzSelectComponen
在开发环境正常,不过当在线上 --prod 后, 则 this.nzSelectComponent 变成了undefined (在ngAfterViewInit)

所以我不得不自定义了模板变量 (开发环境和正式环境就都正常了)
@ViewChild('nzSelectOper') childComponent: NzSelectComponent;

不知道 是ng-zorro-antd 的问题,还是 --prod编译的问题

@tommas3210
Copy link

@ViewChild(NzSelectComponent) childComponent: NzSelectComponen
在开发环境正常,不过当在线上 --prod 后, 则 this.nzSelectComponent 变成了undefined (在ngAfterViewInit)

所以我不得不自定义了模板变量 (开发环境和正式环境就都正常了)
@ViewChild('nzSelectOper') childComponent: NzSelectComponent;

不知道 是ng-zorro-antd 的问题,还是 --prod编译的问题

我也遇上了。@ViewChild / @ViewChildren / @ContentChild / @ContentChildren 只要是ng-zorro-antd的控件都是undefined,而其它第三方控件卻沒問題。

@vthinkxie
Copy link
Member

@lopn @tommas3210 plz track #2696

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

No branches or pull requests

6 participants