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
[V2] When closeMenuOnSelect is false, the focus highlight jumps to the 1st option after each selection #2813
Comments
Yeah, this is a little bit annoying. Hope it could get sorted out. |
Hello - In an effort to sustain the We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest version. If you aren't using the latest version of However, if you feel this issue is still relevant and you'd like us to review it - please leave a comment and we'll do our best to get back to you! |
May I ask how you solved this @wdcryer ? How would you set |
Note that this happens particularly when selecting the last option with your mouse or selecting an option using the "Enter" key. |
Follow #4370 for any further updates on this. |
Here is an example I tested in Chrome: https://codesandbox.io/s/nwxvq7y3m
After you select options other than the first, the focus option jumps to the first, then jumps back down when you move your mouse. This looks pretty jumpy. It seems like it can be fixed by setting focusOption to null rather than options[0] when lastFocusedOption can't be found (in Select.js getNextFocusedOption function). This makes it so no options are focused after making a selection until you move your mouse to another option.
The text was updated successfully, but these errors were encountered: