From 3c4df815794aa05478ad75cff0f0b929fdfb8467 Mon Sep 17 00:00:00 2001 From: carlossa Date: Thu, 15 Feb 2024 11:30:51 +0100 Subject: [PATCH 1/6] refs #6862 fixtest --- src/components/common/VnSelectFilter.vue | 4 ++-- src/pages/InvoiceIn/Card/InvoiceInBasicData.vue | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/common/VnSelectFilter.vue b/src/components/common/VnSelectFilter.vue index 659f1c3bd..31b0f16ad 100644 --- a/src/components/common/VnSelectFilter.vue +++ b/src/components/common/VnSelectFilter.vue @@ -79,7 +79,7 @@ onMounted(() => { if ($props.url && $props.modelValue) fetchFilter($props.modelValue); }); -function filter(val, options) { +async function filter(val, options) { const search = val.toString().toLowerCase(); if (!search) return options; @@ -119,7 +119,7 @@ async function filterHandler(val, update) { myOptions.value = await fetchFilter(val); return; } - myOptions.value = filter(val, myOptionsOriginal.value); + myOptions.value = await filter(val, myOptionsOriginal.value); }, (ref) => { if (val !== '' && ref.options.length > 0) { diff --git a/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue b/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue index 2f8435166..8d7362679 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue @@ -186,6 +186,7 @@ async function upsert() { url="Suppliers" :fields="['id', 'nickname']" sort-by="nickname" + :is-clearable="false" >