JedWatson / react-select

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

Menu has scroll issue when hover the last visible menu item #5831

Open spone379 opened 9 months ago

spone379 commented 9 months ago

Problem

When using menuPlacement="auto" on a menu and it's rendered at the top with a scroll, hovering over the last item causes the scroll to jump unexpectedly.

Expected Behavior

The scroll should remain stable when hovering over the last item in the menu.

How to reproduce

I recorded video using an Portaling example from the official website https://react-select.com/advanced#portaling

https://github.com/JedWatson/react-select/assets/17438575/c9b71aff-7487-42a1-a432-3f26f72e83ce

dmitriievserguei commented 6 months ago

I can help with this issue!