From 5796bc9c0a7e0dc27378b1b053eded6c07a53bbb Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 13 Sep 2024 10:32:40 +0200 Subject: [PATCH] fix: emit:updateModelValue --- src/components/common/VnLocation.vue | 4 +++ .../vnComponent/vnLocation.spec.js | 32 ++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/components/common/VnLocation.vue b/src/components/common/VnLocation.vue index e95d5a043..b6cbfbafd 100644 --- a/src/components/common/VnLocation.vue +++ b/src/components/common/VnLocation.vue @@ -20,6 +20,9 @@ const modelValue = ref( function showLabel(data) { return `${data.code} - ${data.town}(${data.province}), ${data.country}`; } +const handleModelValue = (data) => { + emit('update:model-value', data); +};