Skip to content

[menu] Missing finalFocus prop #1855

Open
@vladmoroz

Description

@vladmoroz

Feature request

Summary

A finalFocus prop on Menu that'd work just like on Popover

Examples in other libraries

Radix provides onCloseAutoFocus in the Dropdown Menu

Motivation

Focus another element when closing the menu.

In my case, building a design app that eagerly returns focus to the canvas hotkey handler after most interactions. I can also easily picture more common examples, such as a "Invite team member" menu item that focuses an email input to send the invitation when the menu is closed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions