JedWatson from React-select Repository

MIT License

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

Issue Opened
AliaksandrDzeviatsen Opened Issue On Sep 22nd 2022, 11:48


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

About Repository

The Select Component for React.js
Language: TypeScript
Star: 25490
Fork: 3977
Watchers: 25490
Open Issues: 252
MIT License
Last updated: 04 Dec 2022