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

Popup点击事件不可用 #651

Open
hezhoushuai opened this issue Mar 11, 2021 · 2 comments
Open

Popup点击事件不可用 #651

hezhoushuai opened this issue Mar 11, 2021 · 2 comments

Comments

@hezhoushuai
Copy link

hezhoushuai commented Mar 11, 2021

popup弹窗点击事件不可用

L7 Version: 2.3.10

Platform:

  1. 如果popup弹窗下的图层绑定了事件,会优先执行下面图层的事件再执行弹窗的事件。
  2. 如果点击下面图层会从新渲染popup则popup会被重新创建;
  3. 图层中的字是不能被选中的;
  4. 对比老版本1.3.0中未发现此问题;

Mini Showcase(like screenshots):

image

CodePen Link:

新老版本问题对照codesandbox地址

@lovewinders
Copy link

我也发现有这个bug,就算设置closeOnClick也不响应内部dom事件

@hezhoushuai
Copy link
Author

我也发现有这个bug,就算设置closeOnClick也不响应内部dom事件

感觉是写在事件捕获阶段的,会优先触发外层容器的事件。然后外层容器的click事件刚好又会重置popup,就会导致popup中的事件无法触发。

@hezhoushuai hezhoushuai changed the title Popup点击事件问题 Popup点击事件不可用 May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants