Skip to content

Commit

Permalink
fix(Listbox): props estimateSize not being use
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Apr 20, 2024
1 parent 27a1528 commit 594da83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/radix-vue/src/Listbox/ListboxVirtualizer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const virtualizer = useVirtualizer(
get count() { return props.options.length },
get horizontal() { return rootContext.orientation.value === 'horizontal' },
estimateSize() {
return 28
return props.estimateSize ?? 28
},
getScrollElement() { return parentEl.value },
overscan: 12,
Expand Down

0 comments on commit 594da83

Please sign in to comment.