Skip to content

MatDialogConfig.id does not work? #9496

Closed
@goldenbull

Description

@goldenbull

Bug, feature request, or proposal:

Bug

What is the expected behavior?

As the doc:
id: string | ID for the dialog. If omitted, a unique one will be generated.

What is the current behavior?

the generated dialog has no ID attribute:
<mat-dialog-container class="mat-dialog-container ng-tns-c1-0 ng-trigger ng-trigger-slideDialog ng-star-inserted" tabindex="-1" role="dialog" style="transform: none; opacity: 1;">...</mat-dialog-container>

What are the steps to reproduce?

    const dialogRef = this.dialog.open(PopupFormComponent, {
      id: 'dlg000',
      height: 200,
      width: 300
    });

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 5.2.0, Material 5.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions