Is it possible to detect when a DOM element outside of a Vue component is clicked while the component is nested within a regular website?
I'm unable to use v-on
and have also experimented with event listeners, but they don't seem to work as they cannot access the properties of the component.
Any suggestions on how this can be achieved?