mirror of
https://github.com/tenrok/vue-select.git
synced 2026-05-17 02:29:37 +03:00
docs: update guide for infiniteScroll.vue (#1236)
change the display condition of ther loader from v-if to v-show. When used with v-if and if returns false, the element will not be rendered and the observer stops working. With v-show, the element will exists but won't be visible and the observer will still work.
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
@close="onClose"
|
||||
@search="query => search = query"
|
||||
>
|
||||
<template #list-footer v-if="hasNextPage">
|
||||
<li ref="load" class="loader">
|
||||
<template #list-footer>
|
||||
<li ref="load" class="loader" v-show="hasNextPage">
|
||||
Loading more options...
|
||||
</li>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user