Skip to content

Commit be2961e

Browse files
committed
fix(material-experimental/chips): replace innerText w/ textContent
The chip edit input was using innerText to set the text of an element. This change was prompted by a Google-internal check that warns about `innerText`, but we generally want to use `textContent` anyway as it is more standard.
1 parent 6b2b518 commit be2961e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material-experimental/mdc-chips/chip-edit-input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class MatChipEditInput {
3838
}
3939

4040
setValue(value: string) {
41-
this.getNativeElement().innerText = value;
41+
this.getNativeElement().textContent = value;
4242
this._moveCursorToEndOfInput();
4343
}
4444

0 commit comments

Comments
 (0)