First attempt of opening the dropdown the highlight falls on first option and not the selected value #5350
Labels
issue/bug-unconfirmed
Issues that describe a bug that hasn't been confirmed by a maintainer yet
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];
The text was updated successfully, but these errors were encountered: