Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

chips: ng-change with read-only array-model causes problems #11301

Closed
@fsmeier

Description

@fsmeier

Bug, enhancement request, or proposal:

ng-change introduced new assignment to model-value instead of just adding/removing the elements of the array. Therefore model-values which just have a getter and no setter are not working anymore.

In some cases it is just wanted to have a property with no setter to not touch the reference to the array but let the values be changed.

CodePen and steps to reproduce the issue:

CodePen Demo 1.1.8 where it still works.
CodePen Demo 1.1.9 where it broke.

Detailed Reproduction Steps:

See codepen + look at The codeline which broke the working code.

What is the expected behavior?

Code does still work after updating to 1.1.9.

What is the current behavior?

Completely dies, latets after removing a chip.

What is the use-case or motivation for changing an existing behavior?

Make it work again without changing the application logic because of a material update

Which versions of AngularJS, Material, OS, and browsers are affected?

  • AngularJS Material: 1.1.9

Is there anything else we should know? Stack Traces, Screenshots, etc.

Introduced with #11237

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions