
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
export default {
mounted(el, binding) {
el.clickOutsideEvent = function (event) {
if (!(el == event.target || el.contains(event.target))) {
binding.value();
}
};
document.body.addEventListener("click", el.clickOutsideEvent);
},
unmounted(el) {
document.body.removeEventListener("click", el.clickOutsideEvent);
},
};