components icon indicating copy to clipboard operation
components copied to clipboard

bug(List): MatSelectionListChange requires again a deprecated property

Open sergiotome opened this issue 3 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

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

sergiotome avatar Nov 17 '22 17:11 sergiotome

Oh yeah, that's a good spot. I think back when we removed it in v14, the still-experimental MDC list code was not updated.

I don't know if we would need to wait until v16 for removal here again.

devversion avatar Nov 19 '22 13:11 devversion

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.