Skip to content

[Bug]: Menu triggers autofocus on mount #24981

Description

@NotWoods

Library

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

System Info

N/A

Are you reporting Accessibility issue?

no

Reproduction

https://codesandbox.io/s/suspicious-lamarr-s2ps37?file=/example.tsx

Bug Description

Actual Behavior

When a menu trigger mounts, it automatically focuses itself

Expected Behavior

The menu trigger doesn't force focus

Logs

No response

Requested priority

High

Products/sites affected

Microsoft Loop

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