Skip to content

Controlled Menu always loses focus to body when dismissed by outside click #27374

Description

@ling1726

Environment Information

  • Package version(s): (fill this out)
  • Browser and OS versions: (fill this out if relevant)

Describe the issue:

When the Menu is controlled focus is lost to body on outside click

Actual behavior:

Outside click reverts focus to body

Expected behavior:

Outside click should focus menu trigger again

If applicable, please provide a codepen repro:

https://codesandbox.io/s/wandering-glitter-6jz4iz?file=/example.tsx

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

Are you willing to submit a PR to fix? (Yes, No)

Requested priority: (Blocking, High, Normal, Low)

Products/sites affected: (if applicable)

Metadata

Metadata

Assignees

No one assigned

    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