mat-select model don't update after removing options programmatically
- Ngôn ngữ chính
- TypeScript
- Star
- 25k
- Fork
- 6.8k
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 91
Mô tả
#### 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
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với bản tái hiện Plunker được liên kết và hành vi của mat-select khi các tùy chọn bị xóa bằng lập trình. Theo dõi cách model đã chọn và change event phản hồi sau khi nhấp vào “Remove options”; hoàn tất khi model được cập nhật và change event được phát ra để khớp với lựa chọn hiển thị.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript
- Lĩnh vực
- frontend
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100