-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/testing
Description
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue
Steps to reproduce:
- Create a chip list with cancel buttons, as in autocomplete example https://stackblitz.com/angular/lmgdmgnkkxbb?file=src%2Fapp%2Fchips-autocomplete-example.ts
- Get MatChipListHarness, call "getChips()" on it and then "getText()" on one of the chip harnesses.
Expected Behavior
What behavior were you expecting to see?
Text of chip includes only the label, e.g. "Lemon".
Actual Behavior
What behavior did you actually see?
Text of chip includes "cancel" text from within the mat-icon as well, e.g. "Lemoncancel".
Environment
- Angular: 10.1.0
- CDK/Material: 10.2.0
- Browser(s): Chrome 85
- Operating System (e.g. Windows, macOS, Ubuntu): macOS
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/testing