Skip to content

Commit

Permalink
fix(material/chips): revert fix
Browse files Browse the repository at this point in the history
revert fix

fixes b/286286473
  • Loading branch information
DBowen33 committed Jul 17, 2024
1 parent acdbc37 commit 663d430
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/material/chips/chip-row.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('MDC-based Row Chips', () => {
});

it('should have the correct role', () => {
expect(chipNativeElement.getAttribute('role')).toBe('presentation');
expect(chipNativeElement.getAttribute('role')).toBe('row');
});

it('should be able to set a custom role', () => {
Expand Down
1 change: 0 additions & 1 deletion src/material/chips/chip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ export class MatChip implements OnInit, AfterViewInit, AfterContentInit, DoCheck
this._isBasicChip =
element.hasAttribute(this.basicChipAttrName) ||
element.tagName.toLowerCase() === this.basicChipAttrName;
this.role = 'presentation';
}

ngAfterViewInit() {
Expand Down

0 comments on commit 663d430

Please sign in to comment.