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

Focus does not reset on menu close. #2

Closed
AshotN opened this issue Nov 13, 2019 · 1 comment
Closed

Focus does not reset on menu close. #2

AshotN opened this issue Nov 13, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@AshotN
Copy link

AshotN commented Nov 13, 2019

  • react-use-context-menu: ^0.1.3"
  • npm (or yarn) version: 1.19.1

Reproduction codesandbox: https://codesandbox.io/s/laughing-river-4msn6

Problem description: When you use keyboard to select item, and you click away from context menu. The focus remains on that item. So let's say you open menu, press arrow down twice, then click away. Focus will go to third item.

Suggested solution: Focus should reset to first item when menu closes.

@cluk3
Copy link
Owner

cluk3 commented Mar 6, 2020

Thanks a lot for reporting the bug, I'm able to reproduce it. I'll find time to fix it and release a new version

@cluk3 cluk3 added the bug Something isn't working label Mar 6, 2020
@cluk3 cluk3 self-assigned this Mar 6, 2020
@cluk3 cluk3 closed this as completed in 233a013 Mar 6, 2020
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