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

Sometimes not working #47

Open
amrap030 opened this issue Jun 22, 2020 · 2 comments
Open

Sometimes not working #47

amrap030 opened this issue Jun 22, 2020 · 2 comments

Comments

@amrap030
Copy link

Hello,

I have a dropdown menu in a component I want to close on clickaway. The same dropdown menu exists in another component. When I click the button of the dropdown menu in the first component and after that the button of the dropdown menu in the other component both dropdowns are open. I would expect to have the first dropdown to close when I click on the second dropdown. But when I do it the other way around the expected behaviour is correct.

How can I fix this?

@dmbaranov
Copy link

Hey @amrap030! I'm facing the same issue. Have you solved it somehow?

@oriati
Copy link

oriati commented Jan 20, 2021

I'm having similar issues, in my case the clickaway isn't registered when the outside click is on vue-bootstrap's dropdown trigger.
I managed to replicate this behavior, it seems that if the outside click has stopPropagation - then the clickaway fails.
I found this issue #19 (comment) that says exactly that..
so make sure you don't stop the event propagation in your click

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

3 participants