vue-on-click-outside

vue mixin/directive that does something when you click outside a container

onclick-outside

Trigger function when clicking outside a component for Vue.js