We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb1abe4 commit 2e6cb12Copy full SHA for 2e6cb12
packages/@headlessui-react/src/components/combobox/combobox.tsx
@@ -1659,7 +1659,7 @@ function OptionsFn<TTag extends ElementType = typeof DEFAULT_OPTIONS_TAG>(
1659
})
1660
1661
// Map the children in a scrollable container when virtualization is enabled
1662
- if (data.virtual && data.comboboxState === ComboboxState.Open) {
+ if (data.virtual && visible) {
1663
Object.assign(theirProps, {
1664
// @ts-expect-error The `children` prop now is a callback function that receives `{ option }`.
1665
children: <VirtualProvider>{theirProps.children}</VirtualProvider>,
0 commit comments