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

tabindex parent bug fix for edge #1854

Merged
merged 1 commit into from
Sep 8, 2017

Conversation

George-A-Payne
Copy link
Contributor

There is a bug in Edge where if a parent of the select has a tabindex, you are unable to use the scrollbar within the select.

Within handleInputBlur, document.activeElement becomes the parent with tabindex, and fails the if().

To reproduce:

Add tabIndex={-1} to .section on this line of the examples. Open the example in Edge and observe the inability to scroll using the scrollbar.


This pull request adds tabindex={-1} to .Select-menu to prevent the parent from stealing the activeElement, and allows you to scroll.

@agirton agirton added the issue/bug-confirmed Issues about a bug that has been confirmed by a maintainer label Jul 5, 2017
@agirton
Copy link
Collaborator

agirton commented Jul 5, 2017

Hi @George-A-Payne, besides Edge what browsers have you tested this in? Just want to make sure that this doesn't cause any regressions in any other browser when navigating with the tab key.

@George-A-Payne
Copy link
Contributor Author

George-A-Payne commented Jul 5, 2017

Hi @agirton,
I've tested in Chrome (windows, latest), Firefox (windows, latest), Edge, IE11.
Tabbing works as before.

@agirton
Copy link
Collaborator

agirton commented Jul 5, 2017

Awesome. Thank you!

@agirton
Copy link
Collaborator

agirton commented Jul 28, 2017

Hi @George-A-Payne do you mind rebasing on top of master? Want to make sure all the tests pass before merging.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.978% when pulling 2da6ff6 on George-A-Payne:edge-tabindex-bugfix into 6c0ee59 on JedWatson:master.

@JedWatson
Copy link
Owner

Thanks for this @George-A-Payne!

@JedWatson JedWatson merged commit a288be7 into JedWatson:master Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/bug-confirmed Issues about a bug that has been confirmed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants