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

在popover中使用dropdown组件导致popover不按正常逻辑关闭 #6177

Closed
tirelyl opened this issue Dec 10, 2020 · 9 comments
Closed

Comments

@tirelyl
Copy link
Contributor

tirelyl commented Dec 10, 2020

Reproduction link

https://stackblitz.com/edit/dropdown-in-popover-bug?file=src/app/app.component.ts

Steps to reproduce

在popover中使用dropdown组件,点开dropdown组件后,通过clickoutside的方式关闭dropdown组件,会导致popover组件也被关闭,如图:
popover-bug

What is expected?

关闭popover中的dropdown组件不会导致popover被关闭

What is actually happening?

关闭popover中的dropdown组件会导致popover被关闭

Environment Info
ng-zorro-antd 10.2.0
Browser chrome 版本 86.0.4240.198(正式版本) (64 位)

使用场景为:popover中可能会有下拉列表(dropdown)来选择一些条目,现在的表现为选择过后,popover整个被关闭了

@wzhudev
Copy link
Member

wzhudev commented Dec 10, 2020

@wenqi73 这个应该是去掉 mask 之后点击事件被 disaptch 所有浮层元素导致的,这个有通用的解决方法吗?

@wenqi73
Copy link
Member

wenqi73 commented Dec 10, 2020

@wendellhu95 11 会加个nzHasBackdrop 配置项

@wenqi73 wenqi73 added this to the v11.0.0 milestone Dec 10, 2020
@tirelyl
Copy link
Contributor Author

tirelyl commented Dec 10, 2020

@wendellhu95 11 会加个nzHasBackdrop 配置项

11 大概进度还要多久呀~

@wzhudev
Copy link
Member

wzhudev commented Dec 10, 2020

可关注我们的 milestone https://github.com/NG-ZORRO/ng-zorro-antd/milestone/7

@tirelyl
Copy link
Contributor Author

tirelyl commented Dec 10, 2020

#6064 这个pr能解决此问题吗

@suica
Copy link

suica commented Dec 11, 2020

Same problem. Will this be fixed in v10.x?

@maojj
Copy link

maojj commented Dec 12, 2020

Same problem, please fix it in v10.x

@wenqi73
Copy link
Member

wenqi73 commented Dec 14, 2020

Will fixed in 11.0, you can downgrade to 10.0.2 to avoid this if you use 10.x

@maojj
Copy link

maojj commented Dec 15, 2020

Will fixed in 11.0, you can downgrade to 10.0.2 to avoid this if you use 10.x

Our projects are use for 10000+ users , and every user cost 1+ hours per day。We have to upgrade ng-zorro carefully。 Maybe downgrade to 10.0.2 is a solution,but there are other problems.

  1. Some other bugs fixed after 10.0.2,list in https://ng.ant.design/docs/changelog/zh。 If we use 10.0.2 , those bugs will still exist.
  2. If this bug fix in 11.0, because 11.0 is a major update, it will have some breaking changes , or some new bugs. We have to wait to a stable version, 11.1.0 or 11.2.0.

So actually,We can not use 10.0.2 in production environment。We have to wait for this bug fixed in 10.x, or wait for 11.1/11.2(not 11.0)

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

No branches or pull requests

5 participants