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

problem of the new version 1.10.0 #50

Closed
zhipengyan opened this issue Apr 14, 2017 · 2 comments
Closed

problem of the new version 1.10.0 #50

zhipengyan opened this issue Apr 14, 2017 · 2 comments

Comments

@zhipengyan
Copy link

在这个 commit 中,click 事件替代了 mousedown 事件,但是会引发一些问题,click 事件相对 mousedown 的事件响应顺序相对靠后,当在业务组件中通过点击 button-example(监听的是 click 事件)操作来更新了组件内容,在更新时如果 unmount 了一些内容且包含了 button-example,那么在 onDoumentClick 中判断是否执行的时候将会误伤,因为 document 的 click 事件监听触发时机较晚,button-example 可能已经不在容器中了。

感觉这种情况有点极端,我的使用场景是popover中点击按钮之后,需要更新popover中的内容。

@benjycui
Copy link
Member

fixed in #52

@benjycui
Copy link
Member

rm -rf node_modules && npm i

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