bug(MATCHIP): Chip text doesn't truncate or wrap if the text length takes more width than the form field
- 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
Chip text doesn't truncate or wrap if the text length takes more width than the form field . Remove icon button is also not visible
### Reproduction
StackBlitz link: https://stackblitz.com/edit/hnhs71mw?file=src%2Fexample%2Fchips-autocomplete-example.html
Steps to reproduce:
1.
2.
### Expected Behavior
Text inside the chip should either truncate or wrap and the remove icon button should be visible
### Actual Behavior
Text overflows the chip and the form field and the remove icon button is not visible
### Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với bản tái hiện trên StackBlitz tại src/example/chips-autocomplete-example.html và xác minh văn bản chip bị tràn cùng biểu tượng xóa bị ẩn trong ví dụ chips autocomplete. Truy vết hành vi liên quan của chip và trường biểu mẫu từ ví dụ đó, sau đó xác nhận rằng văn bản chip dài vẫn nằm trong trường và nút xóa vẫ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
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100