Akryum / vue-virtual-scroller

⚡️ Blazing fast scrolling for any amount of data
https://vue-virtual-scroller-demo.netlify.app
9.42k stars 900 forks source link

Simple array scroller skips items with value 0 #135

Open elalienx opened 5 years ago

elalienx commented 5 years ago

Hi I have a simple array that is a long list of numbers. They all start by default at zero. But the scroller don't render any item with value zero. As soon I put any other number they appear.

Code example that works: <RecycleScroller class="scroller" :items="headers" :item-size="32"> <template v-slot="{ item }"> <div class="user">{{ item }}</div> </template> </RecycleScroller>

'data() { return { headers: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] } }'

Code example that does not work: (template is exactly the same)

'data() { return { headers: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] } }'

Akryum commented 5 years ago

I can't reproduce. Please provide a runnable minimal reproduction.

elalienx commented 5 years ago

Hi, tanks for the quick reply. I have created a small demo on this repository: https://github.com/elalienx/vvs-135

Both list use the exact code and html template the only difference is the array passed.