Skip to content

bug(MatRipple): MatRipple can not be disabled for child components (in some scenarios) #26656

Closed
@angelaki

Description

@angelaki

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

(mousedown)="$event.stopPropagation()" stopped MatRipple from doing animations triggered by child components

Description

With Angular Material 14 it was possible to stop the MatRipple from getting triggered by child components utilizing a (mousedown)="$event.stopPropagation()". With Angular 15 it somehow stopped working. It is still working for simple scenarios but somehow not e.g. in MatTable

Reproduction

In this stackblitz AngularMaterial15 the column NoRipple is still triggering MatRipple while it wasn't with AngularMaterial14.

Expected Behavior

Be able to let e.g. buttons in the table not trigger the row's ripple effect.

Actual Behavior

Row's MatRipple effect always gets triggered.

Environment

  • Angular: 15
  • CDK/Material: 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions