Skip to content

Commit

Permalink
fix item wrapper when using item slot API (#393)
Browse files Browse the repository at this point in the history
* fix item slot

* fix item slot

* fix item slot

* fix item slot

* fix item slot
  • Loading branch information
fidalgodev authored May 29, 2023
1 parent 0d7d686 commit b8a09a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -673,11 +673,11 @@
attrs: {
role: 'listitem'
}
}, [slotComponent ? h('div', slotComponent({
}, [slotComponent ? slotComponent({
item: source,
index: index,
scope: props
})) : h(component, {
}) : h(component, {
props: props,
scopedSlots: scopedSlots
})]);
Expand Down
2 changes: 1 addition & 1 deletion src/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const Item = Vue.component('virtual-list-item', {
attrs: {
role: 'listitem'
}
}, [slotComponent ? h('div', slotComponent({ item: source, index: index, scope: props })) : h(component, {
}, [slotComponent ? slotComponent({ item: source, index: index, scope: props }) : h(component, {
props,
scopedSlots: scopedSlots
})])
Expand Down

0 comments on commit b8a09a4

Please sign in to comment.