diff --git a/packages/react-select/src/components/Menu.tsx b/packages/react-select/src/components/Menu.tsx index 46c310774b..e8246fd685 100644 --- a/packages/react-select/src/components/Menu.tsx +++ b/packages/react-select/src/components/Menu.tsx @@ -324,6 +324,7 @@ export const MenuPlacer = < menuPosition, menuShouldScrollIntoView, theme, + options: { length: optionsLength }, } = props; const { setPortalPlacement } = useContext(PortalPlacementContext) || {}; @@ -361,6 +362,7 @@ export const MenuPlacer = < minMenuHeight, setPortalPlacement, controlHeight, + optionsLength, ]); return children({