Skip to content

Commit a0a1f6a

Browse files
authored
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.
1 parent fc10557 commit a0a1f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DynamicScroller.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
:items="itemsWithSize"
55
:min-item-size="minItemSize"
66
:direction="direction"
7-
key-field="id"
7+
key-field="keyField"
88
v-bind="$attrs"
99
@resize="onScrollerResize"
1010
@visible="onScrollerVisible"

0 commit comments

Comments
 (0)