-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Description
Bug, feature request, or proposal:
MdListOption's output EventEmitters selectChange, and deselected do not fire when the item is selected/deselected.
What is the expected behavior?
They should activate the angular expression bound to them.
What is the current behavior?
Here's the code block I'm working with:
<md-selection-list class="selection-content-list">
<md-list-option class="list-item" (selectChange)="selectedItem($event)" (deselected)="deselectedItem($event)" [disabled]="selectionItem.disabled" *ngFor="let selectionItem of (elements | async)">
<md-icon mdListIcon>folder</md-icon>
<h4 mdLine>{{ selectionItem.name }}</h4>
</md-list-option>
</md-selection-list>
The items visually update when being clicked on and off.
The MdSelectionList's selectedOptions variable updates properly.
The selectChange and deselected EventEmitters are never activated.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular Material 2.0.0-beta.10
Is there anything else we should know?
Looking at the current code, it looks like they aren't ever used or references apart from their declarations.
The focus and destroyed events seem to emit fine though.
Also the value variable for MdListOption is coerced to a boolean value so even using selectedOptions doesn't make the MdListOption useable.
javagaba, sdornan, spdjackson and davidglezz
Metadata
Metadata
Assignees
Labels
No labels