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

[V2] When closeMenuOnSelect is false, the focus highlight jumps to the 1st option after each selection #2813

Closed
wdcryer opened this issue Jul 19, 2018 · 5 comments

Comments

@wdcryer
Copy link

wdcryer commented Jul 19, 2018

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.

@gianluca-santexgroup
Copy link

Yeah, this is a little bit annoying. Hope it could get sorted out.

@bladey
Copy link
Contributor

bladey commented May 28, 2020

Hello -

In an effort to sustain the react-select project going forward, we're closing old issues.

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 react-select please consider upgrading to see if it resolves any issues you're having.

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!

@bladey bladey closed this as completed May 28, 2020
@Kadrian
Copy link

Kadrian commented Jan 26, 2021

May I ask how you solved this @wdcryer ? How would you set focusOption ?

@Methuselah96
Copy link
Collaborator

Methuselah96 commented Jan 26, 2021

Note that this happens particularly when selecting the last option with your mouse or selecting an option using the "Enter" key.

@Methuselah96 Methuselah96 reopened this Jan 26, 2021
@Methuselah96 Methuselah96 added issue/bug-confirmed Issues about a bug that has been confirmed by a maintainer and removed issue/bug-confirmed Issues about a bug that has been confirmed by a maintainer labels Jan 26, 2021
@Methuselah96
Copy link
Collaborator

Follow #4370 for any further updates on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants