Vue V2 directive to react on
clicks outside an element.
$ npm install --save v-click-outside-x
$ yarn add v-click-outside-x
It is not a very common need to call
event.stopImmediatePropagation() for click outside event handlers.
Care should be taken when using these!
The need for capture though, is reasonably common when you want menus or dropdown to behave more like their native elements.
<!-- the click event´s propagation will be stopped --><!-- the click event´s default will be stopped --><!-- modifiers can be chained --><!-- use capture mode when adding the event listener -->
Pointer Events Examples
By default, if no argument is supplied then
click will be used. You can specify
the event type being bound by supplying an arguments, i.e.