Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First attempt of opening the dropdown the highlight falls on first option and not the selected value #5350

Open
AliaksandrDzeviatsen opened this issue Sep 22, 2022 · 0 comments
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet

Comments

@AliaksandrDzeviatsen
Copy link

AliaksandrDzeviatsen commented Sep 22, 2022

Is it possible to set initially selectedOption (using selectedValue maybe, if it is defined) as lastFocusedOption and then only options[0]?
Something like
return lastFocusedOption && options.indexOf(lastFocusedOption) > -1
? lastFocusedOption
: selectedOption || options[0];
image

@AliaksandrDzeviatsen AliaksandrDzeviatsen added the issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet label Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet
Projects
None yet
Development

No branches or pull requests

1 participant