vue-outside-events
Vue 2.x directive to react on events outside of an element without stopping the event's propagation.
Works well for handling clicks outside of menus and popups. Can handle any DOM event or CustomEvent. Also able to capture jQuery events.
Install
Demos
Check out the highly contrived demos here: https://nchutchind.github.io/vue-outside-events/docs/index.html
Use
Modular
Scripts
Modifiers
Add the jquery
modifier to allow the directive to handle jQuery triggering of custom events. jQuery must be present in the window for this to work.