From abb86d6697ae133ff102504f46e63e4ad8c8b598 Mon Sep 17 00:00:00 2001 From: Adam Berecz Date: Thu, 16 Dec 2021 16:37:47 +0100 Subject: [PATCH] fix: don't show spinner when not active #156 --- src/Multiselect.vue | 2 +- src/composables/useOptions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Multiselect.vue b/src/Multiselect.vue index da1298a..a8152f3 100644 --- a/src/Multiselect.vue +++ b/src/Multiselect.vue @@ -94,7 +94,7 @@ - + diff --git a/src/composables/useOptions.js b/src/composables/useOptions.js index 5278f31..d019e8d 100644 --- a/src/composables/useOptions.js +++ b/src/composables/useOptions.js @@ -592,7 +592,7 @@ export default function useOptions (props, context, dep) } options.value(search.value).then((response) => { - if (query == search.value) { + if (query == search.value || !search.value) { ro.value = response pointer.value = fo.value.filter(o => o.disabled !== true)[0] || null resolving.value = false