Skip to content

feat(CdkMenuTrigger): Please allow passing null value, as is allowed in MatMenuTrigger #25782

Closed
@klinki

Description

@klinki

Feature Description

This feature request is pretty much the same as this one #24030 was for MatMenuTrigger. Please allow setting null also to CdkMenuTrigger.

<button [cdkMenuTriggerFor]="myCondition ? subMenu : null">{{ name }}</button>

Use Case

Allow conditionally setting menu trigger.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue represents a new feature or feature request rather than a bug or bug fixneeds triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions