click-outside icon indicating copy to clipboard operation
click-outside copied to clipboard

Doesn't work in modal window

Open HrachovRoman opened this issue 3 years ago • 2 comments

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.

HrachovRoman avatar Oct 13 '22 12:10 HrachovRoman

use a timeout for the click event

AntonyOnScript avatar Dec 14 '22 19:12 AntonyOnScript

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

Mamalizz-dev avatar Feb 27 '24 06:02 Mamalizz-dev