Skip to content

[Bug]: Menu with openOnHover does not restore focus in some cases #31344

Description

@layershifter

Library

React Components / v9 (@fluentui/react-components)

System Info

N/A

Are you reporting Accessibility issue?

no

Reproduction

https://stackblitz.com/edit/zdyuuh-spevbr

Bug Description

Actual Behavior

  • Focus First Button using keyboard to observe focus indicator
  • Hover any of the Menu-Trigger buttons to open menu
  • Move mouse away and wait for menu to close
  • Focus is lost, focus is on body

Expected Behavior

  • Focus is not lost

Logs

N/A

Requested priority

High

Products/sites affected

Teams

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions