Reproduction link
https://stackblitz.com/edit/angular-tru7hd-xqtrkw?file=src%2Fapp%2Fapp.component.ts,src%2Findex.html
Steps to reproduce
- Hover the button
- Click on the select
- List item
- List item
Hover one choice
What is expected?
Popover stay visible and we can click on the select choice
What is actually happening?
Popover disappears
Environment | Info |
---|---|
ng-zorro-antd | 16.2.0 |
Browser | Firefox, Edge |
Any idea how to workaround this ? Maybe with playing with some z-index ?
PS: I can't use click trigger instead of hover in my use case.
The reason the popover disappears is because after you select an item, you are no longer hovering.
You would need to make it so that the popover is the equal to or larger than the height of the
select
element when it is expanded.To illustrate this solution you can modify the stackblitz example by wrapping the
select
element in adiv
with a large height.For example: