Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Add option to prevent closing menu on item clickΒ #5999

Closed
@asyncLiz

Description

Feature Request

For menu's that have multi-select list items, the menu should remain open as the user interacts with items instead of closing immediately when the user clicks on an item.

Proposed solution

An option should be provided (e.g. isPersistent or autoClose) to determine whether or not the menu should close its surface when an item is clicked.

Alternatives considered

The user could cancel close events, but that would require more logic to configure for a simple use case than a flag.

Additional context

See material-components/material-web#1353 for the downstream feature request.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions