Skip to content

[Bug]: MenuTrigger of a context menu adds unwanted attributes to the trigger #25607

@jurokapsiar

Description

@jurokapsiar

Library

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

System Info

codesandbox from current v9 docs site

Are you reporting Accessibility issue?

yes

Reproduction

https://codesandbox.io/s/keen-bohr-69x1jz?file=/example.tsx

Bug Description

Actual Behavior

aria-haspopup is being added to the trigger:
image

Expected Behavior

no aria attributes are added to the trigger when the menu is only a context menu

Logs

No response

Requested priority

High

Products/sites affected

No response

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

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions