diff --git a/src/material/dialog/dialog-content-directives.ts b/src/material/dialog/dialog-content-directives.ts index 5dec4d9dca9c..cf8cf0f2c85f 100644 --- a/src/material/dialog/dialog-content-directives.ts +++ b/src/material/dialog/dialog-content-directives.ts @@ -25,7 +25,7 @@ let dialogElementUid = 0; * Button that will close the current dialog. */ @Directive({ - selector: `button[mat-dialog-close], button[matDialogClose]`, + selector: '[mat-dialog-close], [matDialogClose]', exportAs: 'matDialogClose', host: { '(click)': 'dialogRef.close(dialogResult)',