angular / angular/components

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

Abierto
#9,038 5 comentarios 0 reacciones 0 asignados Ver en GitHub
area: material/select needs: discussion P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

#### 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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con la reproducción vinculada de Plunker y el comportamiento de mat-select cuando las opciones se eliminan mediante programación. Comprueba cómo responden el modelo seleccionado y el change event después de hacer clic en “Remove options”; se considera completado cuando el modelo se actualiza y el change event se emite para coincidir con la selección visual.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
frontend
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.