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

使用focus触发时遇到的问题 #23

Open
alex-mm opened this issue Jun 2, 2015 · 3 comments
Open

使用focus触发时遇到的问题 #23

alex-mm opened this issue Jun 2, 2015 · 3 comments

Comments

@alex-mm
Copy link

alex-mm commented Jun 2, 2015

问题:
使用focus触发时,例如一个文本框,我想选中一段文字,鼠标一不小心就滑到了文本框的外边,这时并没有失焦,但tip却隐藏了,原来是触发了下面的事件

// 绑定 blur 隐藏事件
Overlay.blurOverlays = [];
$(document).on('click', function (e) {
hideBlurOverlays(e);
});

这里的click能否改为mousedown ?

@afc163
Copy link
Member

afc163 commented Jun 2, 2015

有触发行为的,试试 http://docs.spmjs.io/arale-popup ?

@alex-mm
Copy link
Author

alex-mm commented Jun 2, 2015

就是用的popup, 选文字时鼠标是mousedown的,当鼠标移除文本框时,mouseup会触发 上述代码的事件!但本意是不想隐藏的,不知是否明白了?

@afc163
Copy link
Member

afc163 commented Jun 2, 2015

可以做个静态在线demo看看

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