JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.44k stars 4.1k forks source link

menuPlacement="auto" doesn't work if start search from 1 character #5807

Open maria788 opened 8 months ago

maria788 commented 8 months ago

Hello!

It appears that the custom Menu, along with menuPlacement="auto" and menuPosition="fixed", consistently positions the menu below whenever it's rendered under certain conditions. In my situation, I need to show menu when at least one character is inputted.

Here is a demo: https://codesandbox.io/s/react-select-v5-sandbox-forked-vlxzm2?file=/example.js

image

Note. For the old version of react-select it works as expected. Example:

image

https://codesandbox.io/s/react-select-menu-placement-forked-xh336l?file=/src/App.js

dev-keshav commented 8 months ago

Hey! How is menuPlacement="auto" related to the condition of render input menu?