Open
Description
Hello 👋
This is a small bug with dropdown scroll position that is causing minor frustrations from a UX perspective.
On first render, scroll position in the dropdown always starts at the top, even when a default value is set (either via defaultValue
or via value
props).
Examples:
- https://codesandbox.io/s/react-select-v5-sandbox-forked-372xo?file=/example.js
- https://codesandbox.io/s/angry-christian-17gw6?file=/src/App.js
Screencap:
In the above gif, you can see that on first open "Wisconsin" is not visible in the dropdown list, instead scroll position starts at the top.
On the other hand, when selecting "Vermont" and reopening the dropdown, scroll position is behaving as expected.