Skip to content

Commit a022acf

Browse files
committed
fix(material/chips): update chip-row disabled chip to be focused
Updates chip-row element of Angular Components Chip Component to be focusable even if the chip is disabled. This allows the chip to be accessed via screenreader and read aloud as a disabled chip. Fixes b/380373844
1 parent e91d509 commit a022acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/material/chips/chip-row.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class MatChipRow extends MatChip implements AfterViewInit {
114114

115115
/** Sends focus to the first gridcell when the user clicks anywhere inside the chip. */
116116
_handleFocus() {
117-
if (!this._isEditing && !this.disabled) {
117+
if (!this._isEditing) {
118118
this.focus();
119119
}
120120
}

0 commit comments

Comments
 (0)