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

Disabled elements are still functional if accessed via the keyboard #290

Closed
rid9 opened this issue Dec 16, 2023 · 3 comments
Closed

Disabled elements are still functional if accessed via the keyboard #290

rid9 opened this issue Dec 16, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@rid9
Copy link

rid9 commented Dec 16, 2023

To reproduce:

  1. Visit the Disable/Enable example from the documentation.
  2. Uncheck the "Enable" checkbox. The select now looks disabled as expected, and it's not possible to control it with the mouse.
  3. Click on the select from the example above to focus it.
  4. Press Tab a few times until the disabled checkbox receives focus.
  5. You can now use the keyboard to control the disabled checkbox. Enter works and it opens the dropdown, then you can navigate with the arrow keys to select an option.

When a select is disabled, it should ignore focus and it should not be possible to navigate to it or to control it with the keyboard.

As an example, if three select elements are next to each other and the one in the middle is disabled, pressing Tab should move focus from the first select to the last select and ignore the select in the middle.

@gnbm
Copy link
Collaborator

gnbm commented Dec 22, 2023

@rid9 this should be already fixed in this PR that is pending a review for quite a while

@gnbm gnbm added the bug Something isn't working label Dec 22, 2023
@rid9
Copy link
Author

rid9 commented Jan 3, 2024

@gnbm, v1.0.41 fixed this as well.

@gnbm
Copy link
Collaborator

gnbm commented Jan 3, 2024

Fixed in release v1.0.41

@gnbm gnbm closed this as completed Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants