Skip to content

bug(List): MatSelectionListChange requires again a deprecated property #26005

Closed
@sergiotome

Description

@sergiotome

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

Description

The options attribute was removed in v14 of Angular Material, but it seems like it has been added back in v15 even though it has been directly included in the documentation as a deprecated attribute.

Reproduction

Steps to reproduce:

  1. Create a project with Angular Material 13 that uses the MatSelectionListChange class. Class requires 3 attributes: Source, Option and Options
  2. Migrate the project to Angular Material 14: The Option attribute has been removed and code needs to be updated to get rid of it
  3. Migrate the project to Angular 15: The Option attribute is added back, and has again been included in the documentation directly as a deprecated attribute.

Expected Behavior

I didn't expect the Option attribute to be part of MatSelectionListChange since it was already removed in v14

Actual Behavior

The attribute is again present and required in v15

Environment

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

Metadata

Metadata

Assignees

Labels

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