-
Notifications
You must be signed in to change notification settings - Fork 6.8k
MdSelect selected value not cleared if option is removed #2524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
devversion
added a commit
to devversion/material2
that referenced
this issue
Jan 7, 2017
* Currenty when an option is selected and the option is somehow programmatically removed the select updates its options. Right now it does not remove the selection if the selection has been removed from the options. Fixes angular#2524
devversion
added a commit
to devversion/material2
that referenced
this issue
Jan 13, 2017
* Currenty when an option is selected and the option is somehow programmatically removed the select updates its options. Right now it does not remove the selection if the selection has been removed from the options. Fixes angular#2524
kara
pushed a commit
to kara/material2
that referenced
this issue
Jan 13, 2017
* Currenty when an option is selected and the option is somehow programmatically removed the select updates its options. Right now it does not remove the selection if the selection has been removed from the options. Fixes angular#2524
kara
pushed a commit
to kara/material2
that referenced
this issue
Jan 13, 2017
* Currenty when an option is selected and the option is somehow programmatically removed the select updates its options. Right now it does not remove the selection if the selection has been removed from the options. Fixes angular#2524
devversion
added a commit
to devversion/material2
that referenced
this issue
Jan 13, 2017
* Currenty when an option is selected and the option is somehow programmatically removed the select updates its options. Right now it does not remove the selection if the selection has been removed from the options. Fixes angular#2524
mmalerba
pushed a commit
that referenced
this issue
Jan 18, 2017
* fix(select): remove selection if option is removed * Currenty when an option is selected and the option is somehow programmatically removed the select updates its options. Right now it does not remove the selection if the selection has been removed from the options. Fixes #2524 * Update spec name * Remove check logic and just keep test * Update expectation message * Fix linting * Wait for zone to be stable
kara
pushed a commit
to kara/material2
that referenced
this issue
Jan 20, 2017
* fix(select): remove selection if option is removed * Currenty when an option is selected and the option is somehow programmatically removed the select updates its options. Right now it does not remove the selection if the selection has been removed from the options. Fixes angular#2524 * Update spec name * Remove check logic and just keep test * Update expectation message * Fix linting * Wait for zone to be stable
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
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.
The text was updated successfully, but these errors were encountered: