vue-virtual-scroller
vue-virtual-scroller copied to clipboard
DynamicScroller should pass its own keyField prop to child RecycleScroller
When using DynamicScroller, the keyField prop was ignored because it was manually set as its default value id here.
Might need to bind the attribute for this one to work 😜
That was fast. Not banking on a merge anytime soon tho 😆🤞
I merged this PR too fast, it is expected that DynamicScroller hard code key-field to id.
I will revert this to fix #758
Items passed from DynamicScroller to RecycleScroller are always of the shape { id, item, size }:
https://github.com/Akryum/vue-virtual-scroller/blob/95b934a10343338d102324766e84036e06d9a6a6/packages/vue-virtual-scroller/src/components/DynamicScroller.vue#L115-L125
This issue has resurfaced in version 2.0, perhaps requiring another round of fixes.