Skip to content

bug(ActionList): List items react to clicks even though they are disabled #26574

Closed
@Zacherl

Description

@Zacherl

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

14.2.7

Description

If a mat-action-list is used with a disabled action, the list item is greyed out, but one can still interact with it, e. g. click on it.

Reproduction

StackBlitz
https://stackblitz.com/edit/angular-y6ecj5-wsih76?file=src/app/list-overview-example.html

Steps to reproduce:

  1. Click on the disabled list item
  2. See the action

Expected Behavior

The list item should not react to clicks (no ripple, no action).

Actual Behavior

A ripple is shown on the list item and the click action is triggered and executed.

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/list

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions