Skip to content

Checkbox Infinite Loop #812

@renevall

Description

@renevall

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Setting

<li *ngFor="let item of data">
    <md-checkbox [checked]="item.checked" (change)="item.checked=!item.checked"> 
    {{item.name}}
    </md-checkbox>

Should change the source value and update data once on click/change

What is the current behavior?

The checkbox goes on an infinite switching loop

What are the steps to reproduce?

http://plnkr.co/edit/o7vPsr7S7L14CtQuiDOP?p=preview

Simpler version:

https://plnkr.co/edit/OhqPeWHnjfvkxyNObETc?p=preview

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/o077B6uEiiIgkC0S06dd

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions