Skip to content

Commit

Permalink
fix: don't show spinner when not active #156
Browse files Browse the repository at this point in the history
  • Loading branch information
adamberecz committed Dec 16, 2021
1 parent 6c57415 commit abb86d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Multiselect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
</template>

<!-- Spinner -->
<slot v-if="busy" name="spinner">
<slot v-if="busy && isActive" name="spinner">
<span :class="classList.spinner"></span>
</slot>

Expand Down
2 changes: 1 addition & 1 deletion src/composables/useOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abb86d6

Please sign in to comment.