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

Use capture for window click listener? #93

Closed
Shenmin-Z opened this issue Jan 22, 2018 · 0 comments
Closed

Use capture for window click listener? #93

Shenmin-Z opened this issue Jan 22, 2018 · 0 comments

Comments

@Shenmin-Z
Copy link

I'm using the popover component and the autoHide is not working. After some investigation, I found the reason is that somewhere the click event was stopped with stopPropagation in our existing code.

I added the { capture: true } option to window.addEventListener('click', handleGlobalClick) and it works.

Not sure if { capture: true } would have any side effects, but maybe add an option to allow this? Or is there any better solution for my situation? Thanks.

@Akryum Akryum closed this as completed in 2b6309c May 6, 2018
jordanlovato pushed a commit to jordanlovato/v-tooltip that referenced this issue Sep 19, 2018
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

2 participants