Skip to content

mat-button cant be clicked on mat-cell #15532

@rhyre

Description

@rhyre

What is the expected behavior?

Button can be clicked in mat-cell

What is the current behavior?

Button cannot be clicked obviously

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

Chrome, FF
Latest Angular/Material 7.3.5

Is there anything else we should know?

It was possible before Angular6 in other project. Right now when

  <ng-container matColumnDef="edit">
    <th mat-header-cell *matHeaderCellDef> Edit </th>
    <td mat-cell *matCellDef="let element">
      <div><button mat-icon-button (click)="onClick()"><mat-icon>clear</mat-icon></button></div>
    </td>
  </ng-container>

Button does not react at all.
without mat-*-button everything is working fine

Edit: I've figured this happens only when I pass data through function/ getter

Metadata

Metadata

Assignees

No one assigned

    Labels

    cannot reproduceThe team is unable to reproduce this issue with the information provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions