VinceG / vue-click-away

Vue 3.0 Compatible Click Away Directive
MIT License
108 stars 14 forks source link

Clickaway on fixed element #13

Open bfourgeaud opened 3 years ago

bfourgeaud commented 3 years ago

Hello,

I have a menu item which is absolute on desktop and fixed (fullscreen) on mobile.
Problem is that the clickaway directive works for desktop (when container is absolute), but on my mobile version (when container is fixed) it doesn't work.
In fact wherever i click on screen it throws me a click-away event.

I know that fixed position translates the axis, and therefor some things can get tricky.