-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Description
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Removing an option that is currently selected should update the select
What is the current behavior?
If you remove the currently selected option from the options list
the select does not change its current selected value.
What are the steps to reproduce?
See this plunker: http://plnkr.co/edit/cX2VnC8wm4yNnQTmAGxV?p=preview
- Select the "Third" option and then click on "Pop an option"
- This will remove the "Third" option
- The select will still display the "Third" value
What is the use-case or motivation for changing an existing behavior?
A classic scenario would be adding an item to a collection from a select, where you only want unselected items to appear in the options list.
Which versions of Angular, Material, OS, browsers are affected?
Angular 2.4.1
Angular Material 2.0.0-beta.1
Tested on Chrome 55 (OS/X 10.12)
Is there anything else we should know?
This is kind of related to #2232 and the fix in #2110 but probably needs the _setSelectionByValue
method to be called in response to the options collection changing.
Metadata
Metadata
Assignees
Labels
No labels