Skip to content

Moving mouse out of dropdown or context menu loses focus interfering with keyboard nav #8746

@microbit-matt-hillsdon

Description

@microbit-matt-hillsdon

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

dropdown-mouse-leave.mp4

Reproduction steps

  1. Trigger a context menu or dropdown (via mouse is fine for reproduction, but this also applies when using the keyboard nav plugin)
  2. Use up/down keys to navigate its items
  3. Move the mouse across the menu without otherwise interacting with it
  4. Try to continue keyboard navigation and realise focus has been lost

This is likely due to this call to blur.

At this point focus is on document.body which is unhelpful for further keyboard navigation.

Stack trace

Screenshots

No response

Browsers

No response

Metadata

Metadata

Assignees

Labels

issue: bugDescribes why the code or behaviour is wrong

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions