mat-select model don't update after removing options programmatically
- Dominant language
- TypeScript
- Stars
- 25k
- Forks
- 6.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 91
Description
#### Bug, feature request, or proposal:
Bug
#### What is the expected behavior?
I expect to get the model updated and the change event called after remove selected options of the options list.
#### What is the current behavior?
The model don't update and the change event is not called, but visually is updated.
#### What are the steps to reproduce?
1 - http://plnkr.co/edit/RNAeZbaNrtMQRrjC7IDc?p=preview ;
2 - Click on "Remove options";
3 - mat-select visually update;
4 - model dont update and change event is not called;
#### What is the use-case or motivation for changing an existing behavior?
If I change the options for any reason, I expect to get the change events and the model to be updated in order to keep data consistent;
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
master
#### Is there anything else we should know?
No
Contributor guide
Research direction
Start with the linked Plunker reproduction and the mat-select behavior when options are removed programmatically. Trace how the selected model and change event respond after clicking “Remove options”; done means the model updates and the change event is emitted to match the visual selection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100