Mat-chip-list multiple selection doesn't work
- 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:
Multiple selection of chips doesn't work
Also access to chips.selected is always empty array.
#### What is the expected behavior?
Should be possible to select multiple chips when multiple and selectable are set to true.
Selected array should return array of selected mat-chips.
#### What is the current behavior?
Can select max on chips.
Selected property returns empty array.
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-5hhmet?file=app/chips-overview-example.ts
check console.log and try to select multiple chips.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material 5.0.2 and Angular 5.0.5
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với bản tái hiện StackBlitz được liên kết, đặc biệt là app/chips-overview-example.ts, và xác minh đầu ra của console khi chọn các chip. Theo dõi hành vi của mat-chip-list khi multiple và selectable được bật. Hoàn thành khi có thể chọn nhiều chip và chips.selected trả về mảng các mat-chips đã chọn.
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