vue-virtual-scroller
vue-virtual-scroller copied to clipboard
:data-index="index" is incorrect in DynamicScrollerItem demo
trafficstars
Clear and concise description of the problem
Suggested solution
key-field and index must be consistent otherwise the size of the computed could be 0.
// DynamicScroller
key-field="post_id"
// DynamicScrollerItem
:data-index="item.post_id"
:index="item.post_id"
Alternative
No response
Additional context
No response
Validations
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
my items were not being rendered and after doing what you posted, it worked, thx: I used index instead
// DynamicScrollerItem
:data-index="index"
:index="index"