JedWatson / react-select

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

Menu placement is calculated incorrectly if scrollParent has a fixed height #5795

Open vkristoyt opened 11 months ago

vkristoyt commented 11 months ago

https://github.com/JedWatson/react-select/blob/2f94e8d228ea32dbd0faa1f7685a67b74c70420f/packages/react-select/src/components/Menu.tsx#L96 Since scrollHeight is the normal block height (not the block's scroll height), scrollSpaceBelow is calculated incorrectly for a fixed-height element.