diff --git a/packages/@headlessui-react/src/components/combobox/combobox.tsx b/packages/@headlessui-react/src/components/combobox/combobox.tsx index 832dff342b..c1a09c4538 100644 --- a/packages/@headlessui-react/src/components/combobox/combobox.tsx +++ b/packages/@headlessui-react/src/components/combobox/combobox.tsx @@ -1659,7 +1659,7 @@ function OptionsFn( }) // Map the children in a scrollable container when virtualization is enabled - if (data.virtual && data.comboboxState === ComboboxState.Open) { + if (data.virtual && visible) { Object.assign(theirProps, { // @ts-expect-error The `children` prop now is a callback function that receives `{ option }`. children: {theirProps.children},