Skip to content

feat(mat-dialog): Add disabled property to mat-dialog-close #33368

@Totati

Description

@Totati

Feature Description

When using disabledInteractive on a disabled button, [mat-dialog-close] will actually close dialog.
This makes it useless for this usege, when I want to have a disabled button with a tooltip in a dialog I must handle it in the click listener, and check if it should close
Example

Use Case

I'd like to have a conditionally disabled button in a dialog, which shows a tooltip with information why the user can't choose this. That button returns a value for which mat-dialog-close should be a perfect solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: material/dialogfeatureLabel used to distinguish feature request from other issuesgemini-triagedLabel noting that an issue has been triaged by geminineeds triageThis issue needs to be triaged by the team

    Type

    No type
    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