From 82b6e87f2a71321d922f26d5270fa94e63ff5772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alper=20G=C3=BCven?= Date: Wed, 11 Jun 2025 14:51:19 +0300 Subject: [PATCH] Fix typo in click-outside comment --- src/composables/click-outside.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/composables/click-outside.js b/src/composables/click-outside.js index 5721d96..eca87ca 100644 --- a/src/composables/click-outside.js +++ b/src/composables/click-outside.js @@ -2,7 +2,7 @@ export default { beforeMount(el, binding, vnode, prevVnode) { el.clickOutsideEvent = function (event) { - // here I check that click was outside the el and his children + // here I check that click was outside the element and its children if (!(el == event.target || el.contains(event.target))) { // and if it did, call method provided in attribute value binding.value(event, el); @@ -10,7 +10,7 @@ export default { }; document.body.addEventListener("click", el.clickOutsideEvent); }, - // eslint-disable-next-line no-unused-vars + unmounted(el, binding, vnode, prevVnode) { document.body.removeEventListener("click", el.clickOutsideEvent); },