React-select wrong focus #6039
kaloyantihomirov
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following react-select select component:
and here's my custom option component:
I have two questions and would really appreciate it if someone could nudge me in the right direction.
The first problem is that when I open the select dropdown, the focus is on the last option that is visible in the current scroll context. I want the focus to be on the first option by default. By playing with it, I am also left with the impression that the focus is put on a random option, when selecting different ones, so I am not really sure I understand what's going on.
I am also not sure I understand why I need the
blurInputOnSelect={false}
when I already havecloseMenuOnSelect={false}
, but if I don't have it, the menu closes on every option selection.The version I am using is 5.10.1 so all issues I found opened on github should already be fixed in that version.
Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions