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

Doesn't work in modal window #37

Open
HrachovRoman opened this issue Oct 13, 2022 · 2 comments
Open

Doesn't work in modal window #37

HrachovRoman opened this issue Oct 13, 2022 · 2 comments

Comments

@HrachovRoman
Copy link

I have a dropdown component that works well on a normal page. And I have a modal window where I use the same dropdown component. The dropdown close happens outside of the modal click, but not within the modal. Help solve this problem? Perhaps you need to include the directive globally, since the modal window component does not know about this directive? Although, why then does it work just on the page? I will be grateful for any help.

@AntonyOnScript
Copy link

use a timeout for the click event

@KhodeMamalizz
Copy link

KhodeMamalizz commented Feb 27, 2024

i had the same issue on one of my dropdowns

Check @vueuse/onClickOutside on vueuse docs
https://vueuse.org/core/onClickOutside/

it has the same functionality without these kinda bugs

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