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

当 trigger 同时包含 click 和 focus 时可能点击后出现问题 #6

Closed
riophae opened this issue Jun 25, 2015 · 6 comments
Closed

Comments

@riophae
Copy link

riophae commented Jun 25, 2015

<Tooltip
  trigger={['click', 'focus']}
  alignment='top'
  overlay={<span>Hey!</span>}
>
  <a href='#'>Click me</a>
</Tooltip>

例如上面这样,或者直接在 demo 中同时选中 clickfocus 这两个 trigger,当第一次点击 trigger 链接时,会看到气泡弹出后立刻自动收回了。可能是因为 clickfocus 两个事件同时触发导致。

@yiminghe
Copy link
Member

yiminghe commented Jul 1, 2015

@yiminghe yiminghe closed this as completed Jul 1, 2015
@riophae
Copy link
Author

riophae commented Jul 1, 2015

谢谢!

@riophae
Copy link
Author

riophae commented Jul 7, 2015

刚才又测试了一下,连续点击发现有时还是会意外消失

@yiminghe
Copy link
Member

yiminghe commented Jul 7, 2015

浏览器,版本? 我重现不了,可以尝试自己解决下提个 pull request

@riophae
Copy link
Author

riophae commented Jul 7, 2015

Chrome 44.0.2403.61 beta
OS X 10.10.4
我研究下
谢谢!

@yiminghe
Copy link
Member

yiminghe commented Jul 8, 2015

嗯,没测试过 chrome beta 版本

2015-07-07 19:37 GMT+08:00 Fangzhou Li notifications@github.com:

Chrome 44.0.2403.61 beta
OS X 10.10.4
我研究下


Reply to this email directly or view it on GitHub
#6 (comment)
.

yiminghe added a commit that referenced this issue Jul 8, 2015
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