mat-select model don't update after removing options programmatically
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
#### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dalla riproduzione Plunker collegata e dal comportamento di mat-select quando le opzioni vengono rimosse programmaticamente. Traccia come reagiscono il modello selezionato e il change event dopo aver fatto clic su “Remove options”; il lavoro è completato quando il modello viene aggiornato e il change event viene emesso in modo da corrispondere alla selezione visiva.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100