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

MenuItem allows active state to leave focused element with potentially misleading selection #6878

Open
evansjohnson opened this issue Jun 27, 2024 · 0 comments

Comments

@evansjohnson
Copy link
Contributor

evansjohnson commented Jun 27, 2024

Steps to reproduce

  • https://blueprintjs.com/docs/#select/select-component
  • open menu
  • use arrow key to navigate a few items down
  • press enter or space
  • notice active item is selected
  • reopen menu
  • navigating down with tab key
  • continue to navigate down using arrow key
  • notice focus state and active state are on different elements
  • press enter or spacebar to select
  • focused item is selected not active item

Actual behavior

  • there are two focus states making it hard for user to tell what will happen
  • when navigating with tab, focus moves along with active element
  • when navigating with arrows, focus state does not change

Expected behavior

  • focus state should stay in line with what the menu thinks is the active state

Possible solution

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

No branches or pull requests

1 participant