angular / angular/components

bug(chips): MatChipListbox with hideSingleSelectionIndicator does not hide selection indicator on options that have matChipAvatar

Đang mở
#29,470 1 bình luận 2 reaction 0 người được giao Xem trên GitHub
area: material/chips G P3
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ả

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

MatChipListbox hideSingleSelectionIndicator is not hiding the single selection indicator when a MatChipOption has a MatChipAvatar child

### Reproduction

StackBlitz link: https://stackblitz.com/edit/components-issue-rcxta6?file=src%2Fapp%2Fexample-component.html
Steps to reproduce:
1. Have a MatChipListbox with a MatChipOption where the MatChipOption has as MatChipAvatar
2. Set hideSingleSelectionIndicator="true" on the MatChipListbox
3. Click the option from (1)
4. The selection indicator will be there

### Expected Behavior

The single selection indicator should not appear

### Actual Behavior

The single selection indicator does appear

### Environment

- Angular: Latest
- CDK/Material: Latest
- Browser(s): All
- Operating System (e.g. Windows, macOS, Ubuntu): All

Hướng dẫn đóng góp

Mở 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 và theo dõi các điểm vào của MatChipListbox, MatChipOption và MatChipAvatar trong kho lưu trữ các component Angular. Tái hiện việc chọn với hideSingleSelectionIndicator được bật, sau đó xác minh rằng indicator không xuất hiện đối với một option chứa MatChipAvatar.

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
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.