Skip to content

Commit 663d430

Browse files
committed
fix(material/chips): revert fix
revert fix fixes b/286286473
1 parent acdbc37 commit 663d430

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/material/chips/chip-row.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe('MDC-based Row Chips', () => {
102102
});
103103

104104
it('should have the correct role', () => {
105-
expect(chipNativeElement.getAttribute('role')).toBe('presentation');
105+
expect(chipNativeElement.getAttribute('role')).toBe('row');
106106
});
107107

108108
it('should be able to set a custom role', () => {

src/material/chips/chip.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ export class MatChip implements OnInit, AfterViewInit, AfterContentInit, DoCheck
280280
this._isBasicChip =
281281
element.hasAttribute(this.basicChipAttrName) ||
282282
element.tagName.toLowerCase() === this.basicChipAttrName;
283-
this.role = 'presentation';
284283
}
285284

286285
ngAfterViewInit() {

0 commit comments

Comments
 (0)