2
0
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:
Rafael H.F.S
2020-08-19 17:55:59 -03:00
committed by GitHub
parent 41405f9242
commit 6e9861e787
+2 -2
View File
@@ -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>