Skip to content

focused option starting at the selected option #3656

Closed
@csantos1113

Description

@csantos1113

Seems that on v3.0.0 there was a change introduced in the way the focused option is determined.

Here is an example of how it worked on v2.4.4: https://codesandbox.io/s/react-codesandboxer-example-sywkk

2019-06-27 15 26 48

  • Selected option ==> Blue background ==> "Purple" option
  • Focused option ==> Light blue ==> Starts in "Purple" option and you could move from there.

Which is the same as the behavior of the native select inputs:
2019-06-27 15 33 24


Here is the same exact example running on v3.0.4: https://codesandbox.io/s/react-codesandboxer-example-3cutx

2019-06-27 15 30 52

  • Selected option ==> Blue background ==> "Purple" option
  • Focused option ==> Light blue ==> Starts in "Ocean" option.

Not sure if this is an issue, or if it was a change intentional made.
But, how can I get the focused option starting at the selected option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions