JedWatson / react-select

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

Select with portal is scrolling into hovered option. #5654

Open DmitriiOrekhanov opened 1 year ago

DmitriiOrekhanov commented 1 year ago

Are you reporting a bug or runtime error?

Bug

Hey! when i'm using Select with portal dropdown is getting scrolled on hovered option if it's not fully inside of view. As an example i attach a video from react-select page, you can reproduce it here.

Reproduced on: Windows 10 + Chrome 114, Pop OS 22 + Chrome 111

https://github.com/JedWatson/react-select/assets/61080998/fcbbfbac-f082-4dfe-9ffe-0b8a0497242e

goozlo commented 1 year ago

The bug appeared after this merge, it is not reproduced on 5.4.0