angular / angular/components

mat-select model don't update after removing options programmatically

Ouverte
#9,038 5 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area: material/select needs: discussion P3
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par la reproduction Plunker liée et par le comportement de mat-select lorsque des options sont supprimées par programmation. Suivez la réaction du modèle sélectionné et du change event après avoir cliqué sur « Remove options » ; c’est terminé lorsque le modèle est mis à jour et que le change event est émis pour correspondre à la sélection visuelle.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.