Skip to content

Aria-owns property for ContextualMenu item for a sub menu is wrong #3952

Description

@T-Hugs

Bug Report

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? Already done, see #3951

Requested priority: Normal

Products/sites affected: VSTS

Describe the issue:

If submenu props are given in a ContextualMenu item, one may give any ID for the generated submenu. However, the aria-owns property for the parent menu item will always be a generated ID rather than the one specified. This fix causes the aria-owns property to use the correct submenu ID.

Actual behavior:

Wrong aria-owns value

Expected behavior:

Not wrong aria-owns value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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