Skip to content

Commit

Permalink
fix(useVirtualList): ensure component applies overflow style (#3626)
Browse files Browse the repository at this point in the history
  • Loading branch information
reubns committed Dec 11, 2023
1 parent ab2e1b9 commit 286c357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useVirtualList/component.ts
Expand Up @@ -40,7 +40,7 @@ export const UseVirtualList = /* #__PURE__ */ defineComponent<UseVirtualListProp
containerProps.style.height = props.height || '300px'

return () => h('div', { ...containerProps }, [
h('div', { ...wrapperProps.value }, list.value.map((item: any) => h('div', { style: { overFlow: 'hidden', height: item.height } }, slots.default ? slots.default(item) : 'Please set content!'))),
h('div', { ...wrapperProps.value }, list.value.map((item: any) => h('div', { style: { overflow: 'hidden', height: item.height } }, slots.default ? slots.default(item) : 'Please set content!'))),
])
},
})

0 comments on commit 286c357

Please sign in to comment.