Skip to content

Close a dialog (from @angular/material/dialog) on any element #16597

Closed
@michael-vasyliv

Description

@michael-vasyliv

Feature Description

I would like to see a feature close a dialog on any element (custom components, native elements) for mat-dialog-close. Actual behaviour provides close only for html button
Selector: button[mat-dialog-close] button[matDialogClose]
I would like to use it on any element (custom or native)

Selector: [mat-dialog-close] [matDialogClose]

Use Case

add a directive mat-dialog-close to element <app-button mat-dialog-close></app-button>, after click on custom button - close button

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions