Skip to content

Scroll position inside dropdown does not reflect selected value on first render #4939

Open
@dinohamzic

Description

@dinohamzic

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:

Screencap:

Kapture 2021-12-03 at 12 17 42


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.

Metadata

Metadata

Assignees

Labels

issue/bug-confirmedIssues about a bug that has been confirmed by a maintainer

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions