components icon indicating copy to clipboard operation
components copied to clipboard

bug(list): Action buttons inside mat-list-item not clickable as of 15.0.0

Open lucasvanhalst opened this issue 2 years ago • 1 comments

Is this a regression?

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

The previous version in which this bug was not present was

14.2.7

Description

When you add one or more action buttons to a mat-list-item, the click event never triggers. In version 14 or lower it would. See stackblitz example.

Reproduction

https://stackblitz.com/edit/components-issue-9jydqo?file=src/app/example-component.html

Expected Behavior

Click events should not be consumed by mat-list-item, they should be propagated.

Actual Behavior

Click events aren't triggered/propagated

Environment

  • Angular:15.0.0
  • CDK/Material:15.0.0
  • Browser(s):Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS

lucasvanhalst avatar Nov 18 '22 14:11 lucasvanhalst

https://github.com/angular/components/issues/26010

benelliott avatar Nov 18 '22 15:11 benelliott

The fix for this will be in the next patch (see the issue linked in the comment above for the relevant PR). Thanks for trying out MDC!

amysorto avatar Nov 18 '22 18:11 amysorto

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.