From ed7d43bf1a88cb86d02e3231c6f628d228acc98e Mon Sep 17 00:00:00 2001 From: Cuong Le Date: Tue, 22 Aug 2023 14:38:11 +0700 Subject: [PATCH 1/2] Telphone's dropdown does not open when changing arrow-icon slot --- src/directives/click-outside.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/directives/click-outside.js b/src/directives/click-outside.js index cbcd5e60..39f9e834 100644 --- a/src/directives/click-outside.js +++ b/src/directives/click-outside.js @@ -11,7 +11,8 @@ export default { console.warn(warn); } el.clickOutsideEvent = function (event) { - if (!(el === event.target || el.contains(event.target))) { + const path = event.composedPath ? event.composedPath() : event.path; + if (!(el === event.target || el.contains(event.target) || path.includes(el))) { binding.value(event, el); } }; From d8780fc760fccbe3185b669c9327a3c7dd8ba2a4 Mon Sep 17 00:00:00 2001 From: Cuong Le Date: Sun, 21 Jul 2024 12:08:09 +0700 Subject: [PATCH 2/2] fix: scroll menu position --- src/components/vue-tel-input.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/vue-tel-input.vue b/src/components/vue-tel-input.vue index 58c9af61..43043b7f 100644 --- a/src/components/vue-tel-input.vue +++ b/src/components/vue-tel-input.vue @@ -26,7 +26,7 @@ {{ data.open ? "▲" : "▼" }} -